Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Lit Canvas Image Shader with ShaderGraph for HDRP

Discussion in 'Graphics Experimental Previews' started by Sergio_SQ, Jun 11, 2020.

  1. Sergio_SQ


    Jun 11, 2020
    Hi, I'm trying to create a shader for HDRP where an "image" component in canvas can be affected by light and receive shadows. This canvas will be placed in World Space. I achieved part of the challenge so far. But Im getting some problems.

    I applied to a Sprite and work fine. But it does not with the canvas image component.
    The light seems not be afecting the image correctly. As you can see is being cut on the lower part.


    The other problem is that is not been properly sorted. This is what happens when I duplicate the image. the "front" image boundings hide the othr image and there is z-fighting as well

    Any help to solve those?

    Attached Files: