URP 编写自定义 Shader (6) URP ShaderLab Pass tags

https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@7.7/manual/urp-shaders/urp-shaderlab-pass-tags.html

PropertyDescription
UniversalForwardThe Pass renders object geometry and evaluates all light contributions. URP uses this tag value in the Forward Rendering Path.
Universal2DThe Pass renders objects and evaluates 2D light contributions. URP uses this tag value in the 2D Renderer.
ShadowCasterThe Pass renders object depth from the perspective of lights into the Shadow map or a depth texture.
DepthOnlyThe Pass renders only depth information from the perspective of a Camera into a depth texture.
MetaUnity executes this Pass only when baking lightmaps in the Unity Editor. Unity strips this Pass from shaders when building a Player.
SRPDefaultUnlitUse this LightMode tag value to draw an extra Pass when rendering objects. Application example: draw an object outline. This tag value is valid for both the Forward and the Deferred Rendering Paths. URP uses this tag value as the default value when a Pass does not have a LightMode tag.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值