Search Unity

Question Trying to figure out HDRP shaders

Discussion in 'High Definition Render Pipeline' started by Exceptionull, Jul 1, 2022.

  1. Exceptionull

    Exceptionull

    Joined:
    Dec 3, 2019
    Posts:
    5
    So, I've been messing around in HDRP by editing the shader generated from a lit shader graph. I've set the HDRP asset setting to Forward Only (also set it in the project settings), then tried to edit the color value in the shader in the Forward pass, but nothing changed. I tried to edit the same in GBuffer pass and that did work.

    When I removed the GBuffer pass, the material glitched out, but removing the Forward pass changes nothing. It seems like it is still using the Deferred path, despite me setting it to Forward Only. I tried the same with a Transparent surface type and that seems to work as expected (works even without a GBuffer pass).

    Does anyone know what am I doing wrong?
     
  2. BOXOPHOBIC

    BOXOPHOBIC

    Joined:
    Jul 17, 2015
    Posts:
    509
    If I remember correctly, there is a DepthNormals pass, and if ForwardOnly pass is used, you need to have a DepthNormalsOnly pass as well. If that doesn t exist, the GBuffer pass might be used instead.
     
    Exceptionull likes this.