Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

2D Shader Graph Gradient Preview does not match Runtime

Discussion in 'Graphics Experimental Previews' started by ATypicalUser, Apr 26, 2020.

  1. ATypicalUser

    ATypicalUser

    Joined:
    Apr 26, 2020
    Posts:
    1
    I'm working on a simple 2D gradient shader for my UI buttons.
    The graph is based on the gradient in the shader graph examples but the output looks
    weird. My gradient has red as first and orange as second color. In the runtime my button looks completely different with a hard edge instead of a smooth transition (image below).
    Is this a bug or did I miss something?

    Unity Version 2020.1, URP

    CaptureSG1.PNG CaptureSG2.PNG CaptureSG3.PNG