Search Unity

Question convert pbr graph to hdrp lit graph?

Discussion in 'Shader Graph' started by Mister-D, May 9, 2019.

  1. Mister-D

    Mister-D

    Joined:
    Dec 6, 2011
    Posts:
    1,694
    is it possible to convert the lwrp pbr graphs to hdrp lit graphs?
    havent found a good way without redoing everything.
    any advice?
     
  2. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
    Just add HD Lit master node on your graph while editing it, route the connections from old master node to it and remove the old master node, then save.

    Alternatively, you can just use PBR Graphs on both LWRP and HDRP as is, they are crosscompatible for most parts (still need to redo logic for camera relative rendering if you handle that kind of data there).

    Edit: swapping the master node itself doesn't work anymore! But unity is redoing shader graph and there will be alternative way in dealing this: https://portal.productboard.com/8ufdwj59ehtmsvxenjumxo82/c/52-master-stack-and-stage-blocks. No idea how long it'll take for the new SG rework to land on actual builds.
     
    Last edited: Mar 25, 2020
    rxmarccall and Mister-D like this.