Search Unity

Shader migration tutorial?

Discussion in 'Universal Render Pipeline' started by bambamyi, Sep 20, 2019.

  1. bambamyi

    bambamyi

    Joined:
    Nov 26, 2008
    Posts:
    91
    I am pretty excited about the URP. I want to get into it deeper and it was the case with LWRP. But one of the biggest drawback is that there is not a good resource on how to migrate my current shader to URP shader. Can you guys (Unity) make a tutorial on this subject?
     
  2. SophiaC

    SophiaC

    Joined:
    Sep 6, 2016
    Posts:
    238
  3. khalvr

    khalvr

    Joined:
    Sep 12, 2017
    Posts:
    53
    I think what bambamyi is referring to is a tutorial on how to re-write your custom shaders to be compatible with URP. I too have a shader written for LWRP using this template, but i'm currently trying to figure out how to change it to work with URP since there are no resources on this. Shader Graph is a bit limited when it comes to changing lighting models (and even things as basic as changing ZWrite/ZTest mode or render queue offset), so there are still lots of cases where you want to write one from scratch.