PassType
Shader pass type for Unity's lighting pipeline.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Enum
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
public enum PassType
Remarks
This corresponds to "LightMode" tag in the shader pass, see Pass tags.
Fields
Value | Description |
|---|---|
| Deferred | Deferred Shading shader pass. |
| ForwardAdd | Forward rendering additive pixel light pass. |
| ForwardBase | Forward rendering base pass. |
| GrabPass | Grab Pass. Use this when you want to detect the type of the Grab Pass compared to other passes using the Normal type. Otherwise use Normal. |
| Meta | Shader pass used to generate the albedo and emissive values used as input to lightmapping. |
| MotionVectors | Motion vector render pass. |
| Normal | Regular shader pass that does not interact with lighting. |
| ScriptableRenderPipeline | Custom scriptable pipeline. |
| ScriptableRenderPipelineDefaultUnlit | Custom scriptable pipeline when lightmode is set to default unlit or no light mode is set. |
| ShadowCaster | Shadow caster & depth texure shader pass. |
| Vertex | Legacy vertex-lit shader pass. |
| VertexLM | Legacy vertex-lit shader pass, with mobile lightmaps. |