Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Bug Lit Layered doesn't handle semi transparency?

Discussion in 'High Definition Render Pipeline' started by GawebStudio, Aug 21, 2022.

  1. GawebStudio

    GawebStudio

    Joined:
    Aug 14, 2017
    Posts:
    11
    Hi,
    I'm trying to use the HDRP/Lit Layered to merge textures together.

    Here is my first case, merging two gradient to transparent together:
    h.png and v.png
    And here is my set up and result, Material set as transparent:
    upload_2022-8-21_10-45-25.png

    You can see a visible fully transparent vertical line which shouldn't be there.

    Second case: Material is set to opaque this time with red color as main layer

    upload_2022-8-21_10-44-50.png

    The layer 1 semi transparency is completely ignored.

    Did I miss an option somewhere so that merging is smooth?

    Best regards
     

    Attached Files:

    • h.png
      h.png
      File size:
      186 KB
      Views:
      60
    • v.png
      v.png
      File size:
      142.4 KB
      Views:
      60
  2. GawebStudio

    GawebStudio

    Joined:
    Aug 14, 2017
    Posts:
    11
    Bump. No one knows about this issue? It seems pretty flagrant to me.
     
  3. GawebStudio

    GawebStudio

    Joined:
    Aug 14, 2017
    Posts:
    11
    OK so after a reply on Discord, layered textures are ignoring alpha channel so we need to use the layer mask which RGB channels are masks for layer 1, 2 and 3 while the alpha is the mask for the main layer. It was a bit confusing but it makes sense now. Also, since masks are packed together, tiling and offset are linked on each layers.