Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

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:
    2,261
    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:
    2,261
  3. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    2,261
    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
unityunity