diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-01-22 17:26:59 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-01-22 17:26:59 +0400 |
commit | 3fa4b6ea7d932d5be9abbf306bbaf342d20c519f (patch) | |
tree | 474a986be72742e8119e25bc927a10e9d6210fdd /intern/cycles | |
parent | 6e5c763e9b2730327e737593a63081f49255aff5 (diff) |
Fix missing shadows with cycles world sample as lamp option, my mistake in
tweaking patch.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/render/light.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |