com.kagekirin.createurpshaders
v1.0.7
Published
Editor extension to add menu entries to create new URP Lit/Empty shaders
Downloads
9
Maintainers
Readme
CreateNewURPShaders
This packages is a small editor extension for Unity (2021.1+, but we could backport to older versions as well), that adds 2 new menu entries:
- Assets -> Create -> Shader -> Universal Render Pipeline -> New Lit Shader to create a new shader based on URP/Lit, i.e. a plain copy of its source
- Assets -> Create -> Shader -> Universal Render Pipeline -> New Empty Shader to create a new shader for URP that contains merely the skeleton of a shader
Details
Lit shader
This functionality retrieves the original URL/Lit shader, and copies its source into the new shader as destination. The shader name gets adapted along the way.
Empty shader
The skeleton of the empty shader is based on Unity's sample given in the URP documentation.
Rationale for this package
I was tired of having to do this by hand every time I wanted to create a customized shader.