- Home /
How can I render lit sprites in URP?
I'm using Unity 2020.3.4f1, URP 10.4.0 and Shader graph10.4.0.
I created a new shader using URP Sprite Lit material. This renders my sprites almost the same as the good old Sprite/Diffuse did. Except for the "Lit" part. I can't get the sprites to be affected by spots or point lights.
I've tried lots of tutorials that try to emulate sprite shaders using the simple lit material, but that messes a lot with the sprite edges, alpha, flip and other things.
I just want to know if there's something in the URP that does what the Sprite/Diffuse shader used to do. I find it hard to believe that they took that away and expected everyone to become experts at shading.
Any help will be more than welcome.
Answer by JohnDoubleUB · Oct 18, 2021 at 06:51 PM
Yeah that "Lit" texture only works with the 2d lights, however this page has a guide on how to do it. https://hananon.com/how-to-make-2d-sprite-cast-and-receive-shadow-in-3d-world-using-unity-shader-graph/?doing_wp_cron=1612697572.6477820873260498046875