[Bf-blender-cvs] [23a9fed] master: Fix T48216: Cycles light fallof node gives black emission in baking.

Brecht Van Lommel noreply at git.blender.org
Sat Apr 23 03:00:35 CEST 2016


Commit: 23a9fede6931c8afe2645f51ad6811751d141d3a
Author: Brecht Van Lommel
Date:   Sat Apr 23 02:58:37 2016 +0200
Branches: master
https://developer.blender.org/rB23a9fede6931c8afe2645f51ad6811751d141d3a

Fix T48216: Cycles light fallof node gives black emission in baking.

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

M	intern/cycles/kernel/kernel_bake.h

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

diff --git a/intern/cycles/kernel/kernel_bake.h b/intern/cycles/kernel/kernel_bake.h
index 8e7a2c1..d0ca256 100644
--- a/intern/cycles/kernel/kernel_bake.h
+++ b/intern/cycles/kernel/kernel_bake.h
@@ -303,7 +303,7 @@ ccl_device void kernel_bake_evaluate(KernelGlobals *kg, ccl_global uint4 *input,
 
 	/* dummy initilizations copied from SHADER_EVAL_DISPLACE */
 	float3 I = Ng;
-	float t = 0.0f;
+	float t = 1.0f;
 	float time = TIME_INVALID;
 
 	/* light passes */




More information about the Bf-blender-cvs mailing list