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.
在着色器方面,我是一个完整的初学者,我正在构建一个项目,我需要在其中使用 Shader Graph。
我想知道是否可以在脸的每一侧渲染两种不同的东西,例如在法线侧渲染纹理和法线贴图,在脸的背面渲染没有阴影或灯光的纯黑色。
如果您想将 ShaderGraph 制作的着色器设置为在两侧模式下渲染,您必须在主设置中启用此选项,如屏幕上的:
嗯......我想出了一种方法来做到这一点,我认为这根本没有优化,但它完美无缺。
在检查器中,我向对象添加了第二种材质,并使用“Is Front Face”和“Branch”节点创建了一个新着色器,将法线面设置为透明,“背面”显示我想要的颜色