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

    Sergio_SQ

    Joined:
    Jun 11, 2020
    Posts:
    7
    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.
    upload_2020-6-11_16-28-7.png
    upload_2020-6-11_16-33-2.png

    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.

    upload_2020-6-11_16-53-51.png

    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
    upload_2020-6-11_16-57-28.png

    Any help to solve those?
     

    Attached Files: