Cycles: add "Transparent Shadow" option for materials, to disable them per material.

This commit is contained in:
Brecht Van Lommel
2013-06-18 09:36:00 +00:00
parent 943388183d
commit 9131adca9f
12 changed files with 32 additions and 22 deletions

View File

@@ -127,7 +127,7 @@ void Object::tag_update(Scene *scene)
foreach(uint sindex, mesh->used_shaders) {
Shader *shader = scene->shaders[sindex];
if(shader->sample_as_light && shader->has_surface_emission)
if(shader->use_mis && shader->has_surface_emission)
scene->light_manager->need_update = true;
}
}