Version: 2022.1

PassType

enumeration

切换到手册

描述

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

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

变量

Normal不与光照交互的常规着色器通道。
Vertex旧版顶点光照着色器通道。
VertexLM采用移动光照贴图的旧版顶点光照着色器通道。
ForwardBase前向渲染基础通道。
ForwardAdd前向渲染附加像素光照通道。
LightPrePassBase旧版延迟光照(光照预通道)基础通道。
LightPrePassFinal旧版延迟光照(光照预通道)最终通道。
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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961