Click or drag to resize
AB4D logo

RenderableInstancedObjectsPrimitive Fields

The RenderableInstancedObjectsPrimitive type exposes the following members.

Fields
 NameDescription
Public fieldInstanceBufferBinding VertexBufferBinding that represents instances buffer
Public fieldInstancesCount The number of instances
Public fieldStartInstanceIndex The start index of the instances in InstanceBufferBinding
Public fieldUseInstanceIdColor When true (false by default) then the color of each instance is defined by the id (index) of each instance.
Public fieldUseInstanceObjectColor Defines the source of the object diffuse color: if true (by default) then color defined in instance buffer is used; if false color defined in IDiffuseMaterial is used for all instaces.
Public fieldUseScreenSpaceScaling When true (false by default) then each instance is scaled in the shader so that the value specified in matrix's M11 defines the size of the rendered object on screen (when the size of the mesh is 1).
Top
See Also