PeapBoy Posted February 21, 2018 Share Posted February 21, 2018 Hello, No bug, no issue today ! I was just wondering about the choice of linking materialDefines to subMeshes, rather than directly on materials themselves. Does that mean that two subMeshes could have the same material, but different defines ? As the material updates the defines depending on its own properties (not the properties of the subMesh), I can hardly see how it's possible. I would love to see an example of this if you have one. I mean, I'm missing something. I'm quite sure this choice has been made for a good reason. But I don't get why. Thanks for your help ! Quote Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2018 Share Posted February 21, 2018 You can have two submeshes from 2 differents meshes that share the same material but defines are not the same because they are constructed with data from material AND meshes For instance: - active lights come from the mesh - mesh can turn off fog (mesh.applyFog) - bones and morph targets come from mesh - etc.. Quote Link to comment Share on other sites More sharing options...
PeapBoy Posted February 21, 2018 Author Share Posted February 21, 2018 Of course Thank you very much and sorry for the stupid question Quote Link to comment Share on other sites More sharing options...
Guest Posted February 21, 2018 Share Posted February 21, 2018 This is not stupid at all! I like this kind of questions: It is better for the community to understand ! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.