setMaterialInstanceAt

fun setMaterialInstanceAt(instance: EntityInstance, primitiveIndex: Int, materialInstance: MaterialInstance)

Changes a material instance on a primitive.

Parameters

primitiveIndex

the primitive of interest

materialInstance

the material instance to bind