Toolkit.WithSpotCone

Toolkit.WithSpotCone method

Sets the cone angles for the Spot light.

public static PunctualLight WithSpotCone(this PunctualLight light, float innerConeAngle, 
    float outerConeAngle)
ParameterTypeDescription
lightPunctualLightThis PunctualLight instance.
innerConeAngleSingleGets the Angle, in radians, from centre of spotlight where falloff begins. Must be greater than or equal to 0 and less than outerConeAngle.
outerConeAngleSingleGets Angle, in radians, from centre of spotlight where falloff ends. Must be greater than innerConeAngle and less than or equal to PI / 2.0.

Return Value

This PunctualLight instance.

See Also