Click or drag to resize
Ab4d.SharpEngine logo

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.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public int GetMaterialIndex(
	Material? material = null
)

Parameters

material  Material  (Optional)
Material

Return Value

Int32
material index that can be used for SubMesh
See Also