From 3fa4b6ea7d932d5be9abbf306bbaf342d20c519f Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 22 Jan 2012 13:26:59 +0000 Subject: Fix missing shadows with cycles world sample as lamp option, my mistake in tweaking patch. --- intern/cycles/render/light.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/cycles/render/light.cpp') diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp index eea5cfb0137..777e764558f 100644 --- a/intern/cycles/render/light.cpp +++ b/intern/cycles/render/light.cpp @@ -431,7 +431,7 @@ void LightManager::device_update_points(Device *device, DeviceScene *dscene, Sce 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); } -- cgit v1.2.3