Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
与默认 URP 着色器不同,自定义 Shader Graph 着色器不附带“接收阴影”复选框,如您在此处看到的。如何在我的着色器上禁用阴影接收?或者,关闭使用我的着色器的任何材质/对象上的阴影接收
这是一个带有“接收阴影”选项的光照着色器
那应该这样做。
当您启用 Inspector 的 Debug 模式时,您可以在 Renderer 的正下方看到 Receive Shadows 复选框。
编辑:不幸的是它不起作用。也许是一个已弃用的接口。
但是如果您想公开它,关键字方法可能会更方便。您可以选中关键字的复选框,它可以快速打开和关闭。