Struct PunctualLightData
The point/spot light data passed to the deferred shaders.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipelines.Universal.Runtime.dll
Syntax
public struct PunctualLightData
  Fields
attenuation
The attenuation of the light.
Declaration
public Vector4 attenuation
  Field Value
| Type | Description | 
|---|---|
| Vector4 | 
color
The color of the light.
Declaration
public Vector4 color
  Field Value
| Type | Description | 
|---|---|
| Vector4 | 
flags
The flags used.
Declaration
public int flags
  Field Value
| Type | Description | 
|---|---|
| int | 
layerMask
The layer mask used.
Declaration
public uint layerMask
  Field Value
| Type | Description | 
|---|---|
| uint | 
occlusionProbeInfo
The occlusion probe info.
Declaration
public Vector4 occlusionProbeInfo
  Field Value
| Type | Description | 
|---|---|
| Vector4 | 
radius
The radius of the light.
Declaration
public float radius
  Field Value
| Type | Description | 
|---|---|
| float | 
spotDirection
The direction for spot lights.
Declaration
public Vector3 spotDirection
  Field Value
| Type | Description | 
|---|---|
| Vector3 | 
wsPos
The world position.
Declaration
public Vector3 wsPos
  Field Value
| Type | Description | 
|---|---|
| Vector3 |