instances
Specifies the number of draw instances of this renderable. The default is 1 instance and the maximum number of instances allowed is 32767. 0 is invalid.
All instances are culled using the same bounding box. The material must set its instanced parameter to true in order to use getInstanceIndex() in the shaders.
Return
Builder reference for chaining calls.
Parameters
instanceCount
the number of instances silently clamped between 1 and 32767.
Draws instanceCount instances (1 to Engine.maxAutomaticInstances), each with its local transform from instanceBuffer, which must hold at least that many and outlive this renderable. All instances are culled with the same bounding box. Only Material.VertexDomain.OBJECT is supported; the material must be instanced to read getInstanceIndex().