diff options
author | Lukas Stockner <lukas.stockner@freenet.de> | 2018-10-22 01:14:22 +0300 |
---|---|---|
committer | Lukas Stockner <lukas.stockner@freenet.de> | 2018-10-22 01:14:22 +0300 |
commit | 02e691689028f4dddaf7149ba23b9e27709e6688 (patch) | |
tree | fe7716c63a7ff4862780302b0cb3fd6d0993eb94 /intern/cycles/render/session.cpp | |
parent | dcef3c30e306788b856f642ad9638aa98fe06517 (diff) |
Cycles: Enable shadow information in requested features when denoising is used
The shadow information isn't only used for shadowcatchers, but also to generate the shadowing feature pass of the denoiser.
Diffstat (limited to 'intern/cycles/render/session.cpp')
-rw-r--r-- | intern/cycles/render/session.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/intern/cycles/render/session.cpp b/intern/cycles/render/session.cpp index d0aa985b035..8bc175a094d 100644 --- a/intern/cycles/render/session.cpp +++ b/intern/cycles/render/session.cpp @@ -682,7 +682,10 @@ DeviceRequestedFeatures Session::get_requested_device_features() BakeManager *bake_manager = scene->bake_manager; requested_features.use_baking = bake_manager->get_baking(); requested_features.use_integrator_branched = (scene->integrator->method == Integrator::BRANCHED_PATH); - requested_features.use_denoising = params.use_denoising; + if(params.use_denoising) { + requested_features.use_denoising = true; + requested_features.use_shadow_tricks = true; + } return requested_features; } |