Toolkit.WithColor
Toolkit.WithColor method
Defines the light color, intensity and range for the current PunctualLight
.
public static PunctualLight WithColor(this PunctualLight light, Vector3 color, float intensity = 1,
float range = Infinity)
Parameter | Type | Description |
---|---|---|
light | PunctualLight | This PunctualLight instance. |
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. |
Return Value
This PunctualLight
instance.
See Also
- class PunctualLight
- class Toolkit
- namespace Aspose.CAD.FileFormats.GLB.ToolKit
- assembly Aspose.CAD