Method GetShadowBias
GetShadowBias(ref VisibleLight, int, ref ShadowData, Matrix4x4, float)
Calculates the depth and normal bias from a light.
Declaration
public static Vector4 GetShadowBias(ref VisibleLight shadowLight, int shadowLightIndex, ref ShadowData shadowData, Matrix4x4 lightProjectionMatrix, float shadowResolution)
Parameters
Type | Name | Description |
---|---|---|
VisibleLight | shadowLight | |
int | shadowLightIndex | |
ShadowData | shadowData | |
Matrix4x4 | lightProjectionMatrix | |
float | shadowResolution |
Returns
Type | Description |
---|---|
Vector4 | The depth and normal bias from a visible light. |