Search Unity

Bug No PBR Shader Graph Option

Discussion in 'Shader Graph' started by FarmerInATechStack, Jan 25, 2021.

  1. FarmerInATechStack

    FarmerInATechStack

    Joined:
    Dec 28, 2020
    Posts:
    57
    I’m following a Unity tutorial on intro to Shader Graph. The tutorial is on Unity 2019 but I’m using Unity 2020.

    Has PBR Graph been removed from Unity 2020? If so, can anyone point to the rationale?

    The tutorial shows the creation of a PBR Graph, but I don’t see that option in Unity 2020. Any help would be appreciated.
     
    MilkyMilk_07 likes this.
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    The Lit graph is the same thing as the PBR graph. Likely changed to match the naming of the included shaders.
     
    BoDDeR, Fenikkel, darkdoom973 and 2 others like this.
  3. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    1,383
    Yeah you need to click 'new blank graph', then set it to lit in the graph settings window
     
  4. Lil_BluBoy

    Lil_BluBoy

    Joined:
    Mar 11, 2021
    Posts:
    2
    how exactly do you 'set it to lit in "graph settings window" '? im a beginner, following the brackeys water shader tutorial. i couldn't find pbr grapgh option, so i am here, pls reply asap, it'll help me tons!
     
    Cloud-009 and priyamj580 like this.
  5. alexanderameye

    alexanderameye

    Joined:
    Nov 27, 2013
    Posts:
    1,383
    First you'll need to add 'Universal' (or hdrp) as your active target, then you can set the material to 'lit'.

     
    giorgospr13 and Jsweep like this.
  6. Lil_BluBoy

    Lil_BluBoy

    Joined:
    Mar 11, 2021
    Posts:
    2
    thanks, i'll do it!
     
  7. skifnomad

    skifnomad

    Joined:
    Jun 14, 2021
    Posts:
    1
    You have saved my day, mate! Thanks a lot!
     
  8. darkdoom973

    darkdoom973

    Joined:
    Jul 21, 2020
    Posts:
    13
    Thanks sire, i was having panic attack coz of this problem
     
  9. melsof

    melsof

    Joined:
    Nov 26, 2021
    Posts:
    1
    Hi thanks for this ! I set it to universal and I add a texture, but, for some reason the material in the scene is turning pink - where in the main preview of the shader graph it looks pretty good
     
  10. Krupaankith

    Krupaankith

    Joined:
    Aug 30, 2021
    Posts:
    4
    It turns pink as the render pipeline you are using doesn't match the render pipeline of the exernal visual.
     
  11. Rigoc

    Rigoc

    Joined:
    Aug 2, 2021
    Posts:
    1
    how do I fix that pls
     
  12. cnezzer

    cnezzer

    Joined:
    Mar 27, 2022
    Posts:
    1
    From the Unity Learn pages fixed the pink issue. Link to page below.
    • Create an LWRP Asset (or URP Asset if using Unity 2019.3 or higher) by clicking Assets > Create > Rendering > Lightweight (or Universal) Render Pipeline > Pipeline Asset.
    • Go to Edit > Project Settings and select Graphics (Figure 01).
    • Add it to the Render Pipeline Asset parameter

    Challenge: Setting up Shader Graph - Unity Learn
     
  13. oremlawi

    oremlawi

    Joined:
    May 30, 2021
    Posts:
    1
    PBR Shader is no longer available, instead use this:

    Create > Shader Graph > URP > Lit Shader Graph
     
    jijicake likes this.
  14. jijicake

    jijicake

    Joined:
    Jun 27, 2021
    Posts:
    6
    thx