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)
ParameterTypeDescription
colorVector3RGB value for light’s color in linear space.
intensitySingleBrightness 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)
rangeSingleHint 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