Instanced |
The InstancedMeshNode type exposes the following members.
Name | Description | |
---|---|---|
InstancesCount | Gets or sets number of rendered instances. This value is automatically set from the SetInstanceData method to the length of the InstancesData array. But user can change the value to render just part of the instances. Changing this property will recalculate the bounding box of this SceneNode. To prevent potentially slow recalculation, use the SetInstancesRange(Int32, Int32, BoundingBox) method. | |
IsBackFaceMaterial | Gets or sets a Boolean that specifies if this InstancedMeshNode is rendering front or back faces of the mesh. Default value is false which means that front face materials are rendered. This value need to be set before the InstancedMeshNode is initialized. | |
IsSolidColorMaterial | Gets or sets a Boolean that specifies if instanced objects are rendered with a solid color (without any shading based on lighting calculations). Default value is false. | |
IsUpdatingBounds | Gets or sets a Boolean that specifies if this InstancedMeshNode is automatically updating its BoundingBox value. Default value is true. | |
IsUsingSingleObjectColor | Gets a Boolean that specified if single color is used for all instance. This is enabled by calling UseSingleObjectColor(Color4) method and disabled by calling UseInstanceObjectColor method. | |
Mesh | Gets or sets a mesh that is used for each instance. | |
StartInstanceIndex | StartInstanceIndex can be set to an index that will render only instances from the specified start index on. Changing this property will recalculate the bounding box of this SceneNode. To prevent potentially slow recalculation, use the SetInstancesRange(Int32, Int32, BoundingBox) method. | |
UseAlphaBlend | Gets or sets a Boolean that specifies if alpha blending is used when rendering model instances. This can be used to render semi-transparent objects. Default value is false. This property is used only when instance color is used (not when UseSingleObjectColor(Color4) is called). |