[Bf-blender-cvs] [66421f2] master: Fix cycles "Is Singular Ray" being on for Camera rays, now is off.

Brecht Van Lommel noreply at git.blender.org
Sat Jun 21 22:25:00 CEST 2014


Commit: 66421f211928af40d81c67c0ed6e3269ff884e9d
Author: Brecht Van Lommel
Date:   Sun Jun 15 12:19:51 2014 +0200
https://developer.blender.org/rB66421f211928af40d81c67c0ed6e3269ff884e9d

Fix cycles "Is Singular Ray" being on for Camera rays, now is off.

This appears to be a wrong interpretation of the OSL docs, and it's more
convenient to have it off.

===================================================================

M	intern/cycles/kernel/kernel_path_state.h

===================================================================

diff --git a/intern/cycles/kernel/kernel_path_state.h b/intern/cycles/kernel/kernel_path_state.h
index 39780c0..fc51c61 100644
--- a/intern/cycles/kernel/kernel_path_state.h
+++ b/intern/cycles/kernel/kernel_path_state.h
@@ -18,7 +18,7 @@ CCL_NAMESPACE_BEGIN
 
 ccl_device_inline void path_state_init(KernelGlobals *kg, PathState *state, RNG *rng, int sample)
 {
-	state->flag = PATH_RAY_CAMERA|PATH_RAY_SINGULAR|PATH_RAY_MIS_SKIP;
+	state->flag = PATH_RAY_CAMERA|PATH_RAY_MIS_SKIP;
 
 	state->rng_offset = PRNG_BASE_NUM;
 	state->sample = sample;




More information about the Bf-blender-cvs mailing list