Cycles: Enable shadow information in requested features when denoising is used
authorLukas Stockner <lukas.stockner@freenet.de>
Sun, 21 Oct 2018 22:14:22 +0000 (00:14 +0200)
committerLukas Stockner <lukas.stockner@freenet.de>
Sun, 21 Oct 2018 22:14:22 +0000 (00:14 +0200)
The shadow information isn't only used for shadowcatchers, but also to generate the shadowing feature pass of the denoiser.

intern/cycles/render/session.cpp

index d0aa985b0350ecc07e2e013025a64f6e463c80b2..8bc175a094db9c96007771d65e6da2f0fc0d8f49 100644 (file)
@@ -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;
 }