Is URP shader source code available?

I came across this: Graphics/Packages/com.unity.render-pipelines.universal/Shaders at master · Unity-Technologies/Graphics · GitHub

Would anyone know if this is the source code repo for the Unity 6 URP shaders? I ask because I’m making an editor script that requires knowing all the 2D params such as _BaseMap, _BumpMap, etc…

Thanks!

Yes, those are shader sources. It’s not exclusively available in that repo, all current editor releases include this content with the install.

That repo a mirror of their internal development repo for graphics things. That particular folder you’re pointing to is part of the URP package. It’s the same content as what you get when installing the URP package in a Unity project. Specifically, current editor versions come with a specific URP version with the editor install that gets copied to the package cache of a project.

The graphics repo has branches corresponding to version streams but doesn’t seem to explicitly identify where a specific version came from. If you’re developing for a specific version, the best thing to do would be to just look at the URP package from the editor install or the copy living in the package cache for a project using URP. As long as you have a supported version of Unity installed, you don’t need the Graphics repo to look at shader sources.

1 Like