1
1

Fix T91797: Cycles volume rendering artifact with overlapping volumes

With the new volume rendering code this was no longer accurate, we always
need to use a new dimension for the next volume segment.
This commit is contained in:
2021-11-18 19:25:15 +01:00
parent 7c4e4d605c
commit fd2a155d06

View File

@@ -208,9 +208,7 @@ ccl_device_inline bool path_state_volume_next(IntegratorState state)
}
/* Random number generator next bounce. */
if (volume_bounds_bounce > 1) {
INTEGRATOR_STATE_WRITE(state, path, rng_offset) += PRNG_BOUNCE_NUM;
}
INTEGRATOR_STATE_WRITE(state, path, rng_offset) += PRNG_BOUNCE_NUM;
return true;
}