Universal target - custom material type

Is it possible to implement custom material type for universal target? This dropdown here:


I want to create customized Lit, very similar to default one, but with stylized light calculation and several options. The thing is I don’t want to copy every shader I have and implement my custom stuff or write everything from scratch, I just want to add “Stylized Lit” inside dropdown, so everything generated there would be using my custom model.

If this is not possible, then is there any workarond to avoid writing all shaders by hand or writing complex nodes to handle light in every single shader graph?

Yes it is possible
there is a sample: GitHub - Zallist/unity.zallist.universal-simple-lit-shadergraph-target: This plugin simply adds a Simple Lit material (SubTarget) to the Universal target for Shader Graph for URP

2 Likes

Thank you very much! I wish there was documentation for this, but actually it does not look as complex as I predicted and I need to extend default Lit, so it might require not much work on C# side :slight_smile:

1 Like