Method ShapeAttenuationSpotConeLight
ShapeAttenuationSpotConeLight(Vector3, Vector3, float, float)
Attenuation by Light Shape for Spot Light with Cone Shape
Declaration
public static float ShapeAttenuationSpotConeLight(Vector3 forward, Vector3 wo, float spotAngle, float innerSpotPercent01)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | forward | Forward Vector of Directional Light |
Vector3 | wo | Vector pointing to the eye |
float | spotAngle | The angle of the light's spotlight cone in degrees. |
float | innerSpotPercent01 | Get the inner spot radius between 0 and 1. |
Returns
Type | Description |
---|---|
float | Attenuation Factor |