WorldSpaceLightPos0 in URP?

Question

Hello everyone. Recently I updated my project to the URP rather than the Built-In RP. However doing so broke a custom cel-shader I wrote. I searched online and it seems it’s due to _WorldSpaceLightPos0 being deprecated. Is there any URP equivalent? I also tried to recreate the shader in the shader graph and use the Main Light node but sadly that node isn’t available in my Unity version. Any help would be appreciated. Thank you.

Posted Mar 6, 2026, 4:01 AM UTC

214
Loading comments…