Customizing a URP Shader to understand masks


I’m using an URP Shader on my project to light UI elements, it’s Universal Render Pipeline/2D/Sprites-Lit-Default, this shader however doesn’t understand masks, after googling a bit I found out that it may be simple to edit this shader to understand masks, maybe just adding a few lines, I’d like to know how I go about finding the script and copying it into a new shader I can edit.

Also, I’ve been trying to get URP Shaders to light Unity Text Objects but couldn’t find a solution, maybe I can edit this new shader to light Text Objects as well, any info is appreciated.

In case anyone ever comes across this, I managed to find the scripts under Game\Library\PackageCache\com.unity.render-pipelines.universal@7.6.0\Shaders.

I couldn’t manage to edit the scripts properly, so I had to find a different way to accomplish what I needed.