Struct PunctualLightData
The point/spot light data passed to the deferred shaders.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Syntax
public struct PunctualLightDataFields
attenuation
The attenuation of the light.
Declaration
public Vector4 attenuationField Value
| Type | Description | 
|---|---|
| Vector4 | 
color
The color of the light.
Declaration
public Vector4 colorField Value
| Type | Description | 
|---|---|
| Vector4 | 
flags
The flags used.
Declaration
public int flagsField Value
| Type | Description | 
|---|---|
| Int32 | 
layerMask
The layer mask used.
Declaration
public uint layerMaskField Value
| Type | Description | 
|---|---|
| UInt32 | 
occlusionProbeInfo
The occlusion probe info.
Declaration
public Vector4 occlusionProbeInfoField Value
| Type | Description | 
|---|---|
| Vector4 | 
radius
The radius of the light.
Declaration
public float radiusField Value
| Type | Description | 
|---|---|
| Single | 
spotDirection
The direction for spot lights.
Declaration
public Vector3 spotDirectionField Value
| Type | Description | 
|---|---|
| Vector3 | 
wsPos
The world position.
Declaration
public Vector3 wsPosField Value
| Type | Description | 
|---|---|
| Vector3 |