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

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: