Renderable |
public class RenderableInstancedObjectsPrimitive : RenderableObjectNodePrimitive
The RenderableInstancedObjectsPrimitive type exposes the following members.
Name | Description | |
---|---|---|
RenderableInstancedObjectsPrimitive | Initializes a new instance of the RenderableInstancedObjectsPrimitive class. |
Name | Description | |
---|---|---|
RenderGeometry |
RenderGeometry renders the geometry (executes draw calls but does not apply material settings)
(Overrides RenderablePrimitiveRenderGeometry(RenderingContext)) |
Name | Description | |
---|---|---|
InstanceBufferBinding | VertexBufferBinding that represents instances buffer | |
InstancesCount | The number of instances | |
StartInstanceIndex | The start index of the instances in InstanceBufferBinding | |
UseInstanceIdColor | When true (false by default) then the color of each instance is defined by the id (index) of each instance. | |
UseInstanceObjectColor | 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. | |
UseScreenSpaceScaling | 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). |