Search Unity

Question Why SSR can't be disabled by volumeLayerMask?

Discussion in 'High Definition Render Pipeline' started by crantisz, Apr 12, 2023.

  1. crantisz

    crantisz

    Joined:
    Jul 9, 2020
    Posts:
    1
    So, I use HDRP and I have a set of cameras. I turn off volume in one of them using volume mask:

    Code (CSharp):
    1. cameraData.volumeLayerMask = 0;
    All effects disable except SSR. But SSR can be disabled by setting Depth to -1:

    Code (CSharp):
    1. cameraComponent.depth = -1;
    Why is that? Maybe I have missed something? It seems to be a bug for me.