Shadow ONLY Shader in URP 12.1.6 & Unity 2021.3.0+

Just as the title says, I just need a simple shader to apply on a Quad on the ground so that it simply shows the shadow received only WITHOUT mesh or shadow casting.

I have gone through the following forums but something in URP changed again and there is no way to obtain this…

This is the only poor hack I was able to find by experimenting but it still multiplies the colors behind it. There are no combination of settings to my knowledge that allows alpha 0 while showing shadows properly.

Found the solution here for anyone else looking:

With URP 3.1.8 I get this error when I import the package: Shader error in 'Shader Graphs/ShadowReceiver': Couldn't open include file 'Packages/com.cyanilux.shadergraph-customlighting/CustomLighting.hlsl'.
Can anyone help? :slight_smile:

I’d recommend updating to Unity 2021. URP 3.1.8 is very outdated.
As per your problem, the github root directory has the CustomLighting.hlsl file that the shader is complaining about. Move it to a new directory like root Asset folder and change that line in the shader file to point to ‘Assets/CustomLighting.hlsl’ instead of ‘Packages/com.cyanilux.shadergraph-customlighting/CustomLighting.hlsl’

8391837--1107471--upload_2022-8-26_15-13-19.png

Hi, unfortunately this method is only for directional light. How do I support other lighting sources?

My shadow receiving asset just added support for additional lights.
You can modify the custom lighting linked above to achieve a similar result as well, but that requires some shader knowledge

This doesn’t really work for me, any idea why?
I’ve created a quad, added a material that uses the ShadowReceiver shader, and all it does is make the object transparent. I’ve tried a directional light and a spot light, nothing really helps.
Anything I didn’t do right? Using Unity 2022