Method ShapeAttenuationAreaTubeLight
ShapeAttenuationAreaTubeLight(Vector3, Vector3, float, Camera)
Attenuation by Light Shape for Area Light with Tube Shape
Declaration
public static float ShapeAttenuationAreaTubeLight(Vector3 lightPositionWS, Vector3 lightSide, float lightWidth, Camera cam)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | lightPositionWS | World Space position of the Light |
Vector3 | lightSide | Vector pointing to the side (right or left) or the light |
float | lightWidth | Width (half extent) of the tube light |
Camera | cam | Camera rendering the Tube Light |
Returns
Type | Description |
---|---|
float | Attenuation Factor |