Exemplo n.º 1
0
 internal int RayTracingFrameIndex(HDCamera hdCamera, int targetFrameCount = 8)
 {
     #if UNITY_HDRP_DXR_TESTS_DEFINE
     if (Application.isPlaying)
     {
         return(0);
     }
     else
     #endif
     return((int)hdCamera.GetCameraFrameCount() % targetFrameCount);
 }
Exemplo n.º 2
0
 static uint VolumetricFrameIndex(HDCamera hdCamera)
 {
     // Here we do modulo 14 because we need the enable to detect a change every frame, but the accumulation is done on 7 frames (7x2=14)
     return(hdCamera.GetCameraFrameCount() % 14);
 }