Struct ShadowData
Container struct for various data used for shadows in URP.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Syntax
public struct ShadowData
Properties
additionalLightsShadowmapHeight
The height of the additional light shadow map.
Declaration
public readonly ref int additionalLightsShadowmapHeight { get; }
Property Value
Type | Description |
---|---|
Int32 |
additionalLightsShadowmapWidth
The width of the additional light shadow map.
Declaration
public readonly ref int additionalLightsShadowmapWidth { get; }
Property Value
Type | Description |
---|---|
Int32 |
bias
A list of shadow bias.
Declaration
public readonly ref List<Vector4> bias { get; }
Property Value
Type | Description |
---|---|
List<Vector4> |
mainLightShadowCascadeBorder
Main light last cascade shadow fade border. Value represents the width of shadow fade that ranges from 0 to 1. Where value 0 is used for no shadow fade.
Declaration
public readonly ref float mainLightShadowCascadeBorder { get; }
Property Value
Type | Description |
---|---|
Single |
mainLightShadowCascadesCount
The number of shadow cascades.
Declaration
public readonly ref int mainLightShadowCascadesCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
mainLightShadowCascadesSplit
The split between cascades.
Declaration
public readonly ref Vector3 mainLightShadowCascadesSplit { get; }
Property Value
Type | Description |
---|---|
Vector3 |
mainLightShadowmapHeight
The height of the main light shadow map.
Declaration
public readonly ref int mainLightShadowmapHeight { get; }
Property Value
Type | Description |
---|---|
Int32 |
mainLightShadowmapWidth
The width of the main light shadow map.
Declaration
public readonly ref int mainLightShadowmapWidth { get; }
Property Value
Type | Description |
---|---|
Int32 |
resolution
A list of resolution for the shadow maps.
Declaration
public readonly ref List<int> resolution { get; }
Property Value
Type | Description |
---|---|
List<Int32> |
shadowmapDepthBufferBits
The number of bits used.
Declaration
public readonly ref int shadowmapDepthBufferBits { get; }
Property Value
Type | Description |
---|---|
Int32 |
supportsAdditionalLightShadows
True if additional lights shadows are enabled.
Declaration
public readonly ref bool supportsAdditionalLightShadows { get; }
Property Value
Type | Description |
---|---|
Boolean |
supportsMainLightShadows
True if main light shadows are enabled.
Declaration
public readonly ref bool supportsMainLightShadows { get; }
Property Value
Type | Description |
---|---|
Boolean |
supportsSoftShadows
True if soft shadows are enabled.
Declaration
public readonly ref bool supportsSoftShadows { get; }
Property Value
Type | Description |
---|---|
Boolean |