在 URP 中投射透明平面的阴影 [英] Cast shadow of transparent plane in URP

查看:128
本文介绍了在 URP 中投射透明平面的阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要这个平面的阴影和一个在着色器图中制作的自定义着色器,以使用相同的模式投射阴影.我真的不知道我能做什么或做错了什么.

I need the shadows of this plane with a custom shader made in shader graph to cast shadow with the same patern. I realy don't know what i can do or did wrong.

提前致谢!

推荐答案

在 ShaderGraph 中转到 Unlit Master 节点.

Within ShaderGraph go to the Unlit Master node.

从这里您可以:

  1. AlphaClipThreshold 设置为 0.5
  2. 按下小齿轮并将表面更改为不透明
  1. Set AlphaClipThreshold to 0.5
  2. Press on the little cog and change the Surface to Opaque

这篇关于在 URP 中投射透明平面的阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆