urp-toon-shader icon indicating copy to clipboard operation
urp-toon-shader copied to clipboard

Spotlight Compatabilty

Open MDLeide opened this issue 4 months ago • 1 comments

Hi - I see the project is no longer maintained, but hoping someone still might see this. I have a scene with 4 directional lights and 4 spotlights. The directional lights are Mixed - Baked Indirect and the Spotlights are Realtime. I cannot get objects shaded by the toon shader to interact with the Spotlights at all. I've tried all sorts of combinations of modes and settings, but no luck.

Anyone have thoughts? I'm super new to lighting with URP.

MDLeide avatar Feb 18 '24 21:02 MDLeide

The toon shader should work fine with spotlights (at least on 2021 LTS, which is the latest version it was updated for). I have an idea though: what's the "Per Object Limit" value set in your URP pipeline asset? It might be that your setup hits the limit.

Delt06 avatar Feb 18 '24 21:02 Delt06