Struct ShaderInput.LightData
Container struct for various data used for lights in URP.
Inherited Members
Namespace: UnityEngine.Rendering.Universal
Assembly: Unity.RenderPipeline.Universal.ShaderLibrary.dll
Syntax
[GenerateHLSL(PackingRules.Exact, false, false, false, 1, false, false, false, -1, "/Users/robje/Library/Application Support/Unity/Editor/documentation/build/com.unity.render-pipelines.universal@16.0/Library/PackageCache/com.unity.render-pipelines.universal@16.0.6/ShaderLibrary/ShaderTypes.cs")]
public struct ShaderInput.LightData
  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 | 
layerMask
The layer mask used.
Declaration
public uint layerMask
  Field Value
| Type | Description | 
|---|---|
| uint | 
occlusionProbeChannels
The channel for probe occlusion.
Declaration
public Vector4 occlusionProbeChannels
  Field Value
| Type | Description | 
|---|---|
| Vector4 | 
position
The position of the light.
Declaration
public Vector4 position
  Field Value
| Type | Description | 
|---|---|
| Vector4 | 
spotDirection
The direction of the light (Spot light).
Declaration
public Vector4 spotDirection
  Field Value
| Type | Description | 
|---|---|
| Vector4 |