Search Unity

Weird black box / hall of mirrors effect in HDRP?

Discussion in 'Shaders' started by xVergilx, Feb 21, 2020.

  1. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    I'm trying to port SpeedTree v6 as is to the HDRP pipeline, and I'm getting some weird artifact:
    GIF.gif

    Got no shader errors.
    Maybe anyone else encountered this? What can be the cause?

    Currently I've got GBuffer pass. Tried adding depth pass with the same results.
     
  2. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
  3. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    This seems to be caused by clip(...). Not sure how to workaround it though.
    I've tried re-creating same shader with ASE, and got same results.

    Edit:
    Using Opaque plus alpha clipping enabled did the trick. I guess I'll stick to ASE for now.
     
    Last edited: Feb 23, 2020