Search Unity

Error: 'UNITY_PASS_FORWARDBASE' : macro redefinition

Discussion in 'Shaders' started by Warrior1424, Feb 26, 2018.

  1. Warrior1424

    Warrior1424

    Joined:
    Sep 30, 2010
    Posts:
    984
    I made a shader using Shader Forge in Unity 2017 that appears to have broken in Unity 2018.
    The error doesn't stop it from compiling, but it is visibly incorrect.
    There's also the possibility that this isn't causing the change I'm seeing.

    The error:
    'UNITY_PASS_FORWARDBASE' : macro redefinition d3d11

    The line specified:
    #define UNITY_PASS_FORWARDBASE


    EDIT: It appears that the shader only visibly breaks when HDR is enabled. If I had to guess its a weird issue with this beta of 2018 so I'm gonna do more tests and see if it is. This thread can probably be closed

    EDIT 2: Nope, it just breaks in HDR with any version. Yeah this thread can be closed
     
    Last edited: Feb 26, 2018
  2. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,983
    your not using SRP, Shadergraph or lightweight/HDRP? because then ofcourse itll break

    if your not using those, then I would message the asset author
     
  3. waldgeist

    waldgeist

    Joined:
    May 6, 2017
    Posts:
    388
    I got the same problem with an old Shader Sandwich shader.

    @GameDevCouple_I: Your answer is pretty cryptic to me. I just updated my project to the latest Unity version and this error popped up. How can I avoid this stuff?
     
    Phils0nDev likes this.