-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merge materials #64
base: master
Are you sure you want to change the base?
Merge materials #64
Conversation
I don't know much about the mac side of things. Good to know, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the biggest fix is making that for loop that gathers the material indices more coherent and understandable.
Just letting you know that I found a problem that needs a bit longer to fix. |
In my opinion this is good to go. Let me know if there is anything else! |
Merge materials on layer or object level.
Merge the default material.
This is to make the gltf more compact and organized.
Current behavior is that every object gets its own material if options.UseDisplayColorForUnsetMaterials is enabled; exceptions is sub-objects with different colors.
If options.ExportLayers is also enabled the layer color gets its own material for all (sub-)objects that are set to layer color.
The DefaultMaterial.RenderMaterial was giving different guids each call so i set it to 0.