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);
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs