本文介绍了2D照明定向阴影?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
因此,我正在制作2D游戏,并希望使用逼真的"照明效果.我正在使用在此视频中看到的LWRP软件包随附的2D照明:
So I'm making a 2D game and want "realistic" lighting effects. I'm using the 2D lighting that comes with the LWRP Package i saw in this video:
https://www.youtube.com/watch?v=nkgGyO9VG54
现在看起来像这样:
Now it looks like this:
但是我希望我的物体像这样投射定向阴影:
But i want my objects to throw directional shadows, like this:
关于着色器之类的东西,我是一个初学者.希望有一个不太复杂的解决方案:)
I am a beginner when it comes to shaders and stuff like that.Hope there is a not-too-complicated solution :)
推荐答案
尝试使用Shadow Caster 2D,它带有URP软件包.您可以将其添加到对象中,然后像使用对撞机一样对其进行编辑.
Try using Shadow Caster 2D, it comes with URP package.You can add it to your object and edit it like you do with the colliders.
这篇关于2D照明定向阴影?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!