Search Unity

Question Customizing Lit Shader with Shader Graph

Discussion in 'Universal Render Pipeline' started by alan-lawrance, Jan 21, 2022.

  1. alan-lawrance

    alan-lawrance

    Joined:
    Feb 1, 2013
    Posts:
    360
    I have a need to modify the Lit shader in URP, and I want to do this in Shader Graph.

    From what I can tell, there is no way to "import" the Lit shader source into shader graph.

    If you create a new "Lit" shader asset, you get a blank slate without any of the properties you would find in the Lit shader source itself (BaseMap, etc).

    Where can I find a shader graph version of the "Lit" shader that matches what is in the source version provided by Unity?
     
  2. fleity

    fleity

    Joined:
    Oct 13, 2015
    Posts:
    345
    I don't think there is one. Maybe someone has a copy of the setup lying around and posts it here but usually everybody just recreates that from scratch I think. It's a bit stupid yes. But setting up a few texture inputs and sliders is like the hello world of shadergraph :confused: