PunctualLight.SetColor
PunctualLight.SetColor method
Defines the light color, intensity and range for the current PunctualLight
.
public void SetColor(Vector3 color, float intensity = 1, float range = Infinity)
Parameter | Type | Description |
---|---|---|
color | Vector3 | RGB value for light’s color in linear space. |
intensity | Single | Brightness of light in. The units that this is defined in depend on the type of light. point and spot lights use luminous intensity in candela (lm/sr) while directional lights use illuminance in lux (lm/m2) |
range | Single | Hint defining a distance cutoff at which the light’s intensity may be considered to have reached zero. Supported only for point and spot lights. Must be > 0. When undefined, range is assumed to be infinite. |
See Also
- class PunctualLight
- namespace Aspose.CAD.FileFormats.GLB
- assembly Aspose.CAD