Click or drag to resize
Ab4d.SharpEngine logo

InstancedMeshNodeUseSingleObjectColor Method

When UseSingleObjectColor is called, the specified objectColor is used as diffuse color for all instances. This overrides the color defined in the instances data. When color's alpha value is less than 1, then alpha blending is used. To use instance color after calling UseSingleObjectColor, call the UseInstanceObjectColor method. By default, the objectColor is not alpha pre-multiplied. This can be changed by setting the IsPreMultipliedAlphaColor property to true.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public void UseSingleObjectColor(
	Color4 objectColor
)

Parameters

objectColor  Color4
color used for all instances (not alpha pre-multiplied)
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.InstancedMeshNode.UseSingleObjectColor(Ab4d.SharpEngine.Common.Color4)"]

See Also