Hello, I am trying to simulate directional (sun) shadows in top down 2D game. So far I have managed to use geometry shader to extrude sprites and cast shadow, but I can’t find a way for the extruded sprites to receive shadows. I am not good at writing shaders, googled some solutions, but all of them produce pink shader, I think some shaders are not compatible with URP?. Can someone help?
Also is it possible to write such shader with Shader Graph? That way it would be much easier for me to edit shader
P.S. I am using Universal Render Pipeline.
Extrude shader Shader "Custom/Geometry/Extrude"{ Properties { _MainTex ("T - Pastebin.com
Shader demonstration
https://www.youtube.com/watch?v=lQgUzBGlVtE