Version: 2023.1

PassType

enumeration

切换到手册

描述

Unity 光照管线的着色器通道类型。

这与着色器通道中的“LightMode”标签对应,请参阅 Pass tags

变量

Normal不与光照交互的常规着色器通道。
Vertex旧版顶点光照着色器通道。
VertexLM采用移动光照贴图的旧版顶点光照着色器通道。
ForwardBase前向渲染基础通道。
ForwardAdd前向渲染附加像素光照通道。
ShadowCaster阴影投射物和深度纹理着色器通道。
DeferredDeferred Shading 着色器通道。
Meta用于生成反照率和发射值(用作光照贴图的输入)的着色器通道。
MotionVectors运动矢量渲染通道。
ScriptableRenderPipeline自定义可编程管线。
ScriptableRenderPipelineDefaultUnlit当光照模式设置为默认无光照或未设置光照模式时的自定义可编程管线。
GrabPassGrab 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.

Did you find this page useful? Please give it a rating: