This Unity editor tool adds additional features (like stencil buffers) to shader graphs. It works, by generating the ShaderLab code and injecting some additional code into it. The shader is automatically updated when saving changes in the shader graph.
Supported features are:
- Renaming the shader
- Changing its group (normally all shader graphs are listed under
Shader Graphs/...) - Use of stencil buffers
- Modifying the rendering queue (e.g.
Geometry+1)
Press the Create Modifier Stack button in the inspector of any shader graph.
This will create two files:
ShaderLab(<name>_Modified.shader): Modified shader that needs to be used for materials instead of<name>.shadergraphModifier Stack(<name>_Modifier Stack.asset): File that stores the modifications
Changes to the modifiers can now be made in the shader graph's inspector.
Installation using the Package Manager:
- Click on the
+in thePackage Managerwindow - Chose
Add package from git URL... - Insert the following URL
https://github.com/JonasWischeropp/unity-shader-graph-modifier.git
A specific release version can be specified by appending#<version>(e.g....ifier.git#1.0.1). - Press the
Add-Button
- More features can simply be added by extending the
Modifierclass. - Files are addressed by GUID, feel free to rename/move them
