 |
MultiMaterialModelNodeGetMaterialIndex Method |
GetMaterialIndex can be called to get the
MaterialIndex that is used in the
SubMesh.
If the material was already used by some other SubMesh, then existing index is returned, otherwise a new index is returned.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntaxpublic int GetMaterialIndex(
Material? material = null
)
Parameters
- material Material (Optional)
- Material
Return Value
Int32material index that can be used for SubMesh
See Also