Represents a light source used by the shading pipeline.
public readonly struct RenderLight
kind:method, kind:property, kind:ctor. Press Esc to clear.RenderLight(XYZ, Single, RenderColor)Initializes a directional light using the supplied direction and color.RenderLight(XYZ, Single)Initializes a directional light using the supplied direction.ColorGets the light color (RGB only).DirectionGets the normalized direction. For directional lights, this is the vector from the surface toward the light. For spot lights, this is the cone direction pointing from the light towards the scene.InnerConeAngleGets the inner cone angle in radians for spot lights.IntensityGets the light intensity in the range [0, 1].OuterConeAngleGets the outer cone angle in radians for spot lights.PositionGets the light position for point and spot lights.RangeGets the maximum range for point and spot lights. Values less than or equal to zero disable attenuation.TypeGets the light type.Directional(XYZ, Single, RenderColor)Creates a directional light.Point(XYZ, Single, RenderColor, Single)Creates a point light at the specified position.Spot(XYZ, XYZ, Single, Single, Single, RenderColor, Single)Creates a spot light at the specified position with a cone in radians.