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:
Brecht Van Lommel 2021-11-18 19:25:15 +01:00
parent 7c4e4d605c
commit fd2a155d06
Notes: blender-bot 2023-02-14 10:37:49 +01:00
Referenced by issue #91797, Weird volumetric artifacts in Cycles (X) rendering
1 changed files with 1 additions and 3 deletions

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;
}