ReadonlydeviceInstanced mesh graphics device
LODs
Texture storing matrices for instances.
The capacity of the instance buffers.
Unique id for the instancer.
Optionalsrc: BoundingBoxDestroys the instancer and all its resources.
Gets the color of a specific instance.
The index of the instance.
Optionalcolor: Color
Optional Color to store the result.
The color of the instance.
Gets the local transformation matrix of a specific instance.
The index of the instance.
Optionalmatrix: Mat4
Optional Mat4 to store the result.
The transformation matrix of the instance.
Retrieves the index of the LOD level for a given distance.
The array of LODs.
The squared distance from the camera to the object.
The index of the LOD that should be used.
Gets the opacity of a specific instance.
The index of the instance.
The opacity of the instance.
Retrieves the position and max scale of a specific instance.
The index of the instance.
The position of the instance as a Vec3 to store the result.
The max scale
Retrieves the position of a specific instance.
The index of the instance.
Optionaltarget: Vec3
Optional Vec3 to store the result.
The position of the instance as a Vec3.
Sets the color of a specific instance.
The index of the instance.
The color to assign to the instance.
Sets the local transformation matrix for a specific instance.
The index of the instance.
A Mat4 representing the local transformation to apply to the instance.
Sets the opacity of a specific instance.
The index of the instance.
The opacity value to assign.
StaticgetGets the instancer with the given id.
The id of the instancer.
The instancer with the given id.
Texture storing colors for instances.