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:
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
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue