Custom pass color buffer issue

I’m doing a draw renderers pass into custom color buffer in after opaque. And in before transparent doing a full screen pass using said color buffer. I’m missing something because the color is just not right. Load vs sample doesn’t make a difference.

All that really dark blue and red and yellow there is wrong. If I just render to the camera buffer in the draw renderers without the later FS pass it’s correct.

Hello,

Maybe what you’re seeing is precision artifacts, by default the custom pass buffer is using an R8G8B8A8 color format which has less precision than the color buffer in HDRP (R11G11B10). You can try to change the custom pass buffer format in your HDRP asset to either R11G11B10 or R16G16B16A16 and see if it fixes the issue:
6925385--812654--upload_2021-3-11_18-49-1.png

Ya that was it, thanks for the tip!

1 Like