[Bf-blender-cvs] [fd2a155d068] blender-v3.0-release: Fix T91797: Cycles volume rendering artifact with overlapping volumes
Brecht Van Lommel
noreply at git.blender.org
Thu Nov 18 19:35:39 CET 2021
Commit: fd2a155d068fdd3e6a6c3b4d58772b1dc9921291
Author: Brecht Van Lommel
Date: Thu Nov 18 19:25:15 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rBfd2a155d068fdd3e6a6c3b4d58772b1dc9921291
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.
===================================================================
M intern/cycles/kernel/integrator/path_state.h
===================================================================
diff --git a/intern/cycles/kernel/integrator/path_state.h b/intern/cycles/kernel/integrator/path_state.h
index de6c3ae8161..eac9ceeae70 100644
--- a/intern/cycles/kernel/integrator/path_state.h
+++ b/intern/cycles/kernel/integrator/path_state.h
@@ -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;
}
More information about the Bf-blender-cvs
mailing list