Click or drag to resize
AB4D logo

InstancedMeshGeometryVisual3DUseInstanceIdColor Method

After calling UseInstanceIdColor method then the color of each instance is defined by the id (index) of each instance. The addedColor4 is added the id (usually a Color4.Black is used). The lowers 8 bytes of the instance id number are written to blue color, then to the green color, then to red color and the highest byte is written to alpha color. The color can be also used when rendering multiple instanced objects to distinguish between them (for example by using different alpha value). To disable using instance id color call UseInstanceObjectColor or UseSingleObjectColor(Color).

Namespace: Ab3d.Visuals
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public void UseInstanceIdColor(
	Color4 addedColor4
)

Parameters

addedColor4  Color4
 
See Also