Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Shader for uGUI RawImage/Image Shadow Opacity Overlap Problem

Discussion in 'Shader Graph' started by jGate99, Sep 13, 2019.

  1. jGate99

    jGate99

    Joined:
    Oct 22, 2013
    Posts:
    1,936
    Hi there,

    I really liked the idea of Shader Graph which enabled photoshop designers like me to create shaders even though im personally not dont know much about creating shaders.

    So here are few questions, hope to get some help:

    - So if you look at attached image i have 2 RawImage/Image, one is set with black and opacity to simulate shadow. But when 2 images get overlapped then opacity of 2 shadows multiply making it dark and thats not what i want

    What i want is where if both shadows overlap which eachother they output same color. Is this possible with ShaderGraph? If so what node should i use for that?

    Thanks
    Opacity Problem.PNG