diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2016-09-14 19:53:35 +0300 |
---|---|---|
committer | Lukas Stockner <lukas.stockner@freenet.de> | 2016-09-14 19:53:35 +0300 |
commit | aae2cea28d0c6c970778674e0ba329b2208b8366 (patch) | |
tree | f2a83d7bdf56be8a9578fc37d554fc69f37b0e7c /intern/cycles/render/light.cpp | |
parent | 51e8c167f40c63c191ac9271fe02de78f2a49b22 (diff) |
Cycles: Also support the constant emission speedup for mesh lights
Reviewers: brecht, sergey, dingto, juicyfruit
Differential Revision: https://developer.blender.org/D2220
Diffstat (limited to 'intern/cycles/render/light.cpp')
-rw-r--r-- | intern/cycles/render/light.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/intern/cycles/render/light.cpp b/intern/cycles/render/light.cpp index 3b7935803f4..93f6d7902f0 100644 --- a/intern/cycles/render/light.cpp +++ b/intern/cycles/render/light.cpp @@ -661,11 +661,6 @@ void LightManager::device_update_points(Device *device, use_light_visibility = true; } - float3 fixed_emission = make_float3(0.0f, 0.0f, 0.0f); - if(shader->is_constant_emission(&fixed_emission)) { - shader_id |= SHADER_FIXED_EMISSION; - } - if(light->type == LIGHT_POINT) { shader_id &= ~SHADER_AREA_LIGHT; @@ -765,7 +760,7 @@ void LightManager::device_update_points(Device *device, light_data[light_index*LIGHT_SIZE + 3] = make_float4(samples, 0.0f, 0.0f, 0.0f); } - light_data[light_index*LIGHT_SIZE + 4] = make_float4(max_bounces, fixed_emission.x, fixed_emission.y, fixed_emission.z); + light_data[light_index*LIGHT_SIZE + 4] = make_float4(max_bounces, 0.0f, 0.0f, 0.0f); light_index++; } |