Fix T45227: Light optimization commit broke world MIS

This commit is contained in:
Sergey Sharybin
2015-06-28 20:47:35 +02:00
parent 68478aea01
commit e245a57640

View File

@@ -143,6 +143,9 @@ bool Light::has_contribution(Scene *scene)
if(is_portal) {
return false;
}
if(type == LIGHT_BACKGROUND) {
return true;
}
return scene->shaders[shader]->has_surface_emission;
}