[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43603] trunk/blender/intern/cycles/render /light.cpp: Fix missing shadows with cycles world sample as lamp option, my mistake in

Brecht Van Lommel brechtvanlommel at pandora.be
Sun Jan 22 14:27:12 CET 2012


Revision: 43603
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43603
Author:   blendix
Date:     2012-01-22 13:26:59 +0000 (Sun, 22 Jan 2012)
Log Message:
-----------
Fix missing shadows with cycles world sample as lamp option, my mistake in
tweaking patch.

Modified Paths:
--------------
    trunk/blender/intern/cycles/render/light.cpp

Modified: trunk/blender/intern/cycles/render/light.cpp
===================================================================
--- trunk/blender/intern/cycles/render/light.cpp	2012-01-22 11:59:30 UTC (rev 43602)
+++ trunk/blender/intern/cycles/render/light.cpp	2012-01-22 13:26:59 UTC (rev 43603)
@@ -431,7 +431,7 @@
 			shader_id &= ~SHADER_AREA_LIGHT;
 
 			light_data[i*LIGHT_SIZE + 0] = make_float4(__int_as_float(light->type), 0.0f, 0.0f, 0.0f);
-			light_data[i*LIGHT_SIZE + 1] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
+			light_data[i*LIGHT_SIZE + 1] = make_float4(__int_as_float(shader_id), 0.0f, 0.0f, 0.0f);
 			light_data[i*LIGHT_SIZE + 2] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
 			light_data[i*LIGHT_SIZE + 3] = make_float4(0.0f, 0.0f, 0.0f, 0.0f);
 		}



More information about the Bf-blender-cvs mailing list