I need to change the file com.unity.render-pipelines.universal\ShaderLibrary\Shadows.hlsl. This file is included by a ton of other files, including shader graph generated ones. Is the best solution to fork URP completely, or is there a different way to inject it into the package?
I’ve made some changes to RealtimeLights.hlsl and I had to fork URP, by copying the whole com.unity.render-pipelines.universal to the /Packages/ folder, otherwise Unity undoes any changes made. It’s a pain when you upgrade to a new version of Unity which has a newer URP because you’ve got to do the same thing all over again, but I don’t believe there’s any other way.
1 Like
Sigh… All right; thanks! Would be cool if Unity offered a way to inject these, especially for Asset Store extensions.