[Bf-blender-cvs] [4094868f730] master: Fix T92502: Position Pass broken

Sergey Sharybin noreply at git.blender.org
Tue Oct 26 16:06:39 CEST 2021


Commit: 4094868f7301ed06e6fd0710d1e9193796eb857d
Author: Sergey Sharybin
Date:   Tue Oct 26 16:05:33 2021 +0200
Branches: master
https://developer.blender.org/rB4094868f7301ed06e6fd0710d1e9193796eb857d

Fix T92502: Position Pass broken

The kernel was writing it for the first sample only, while the film
accessor was thinking it needs to be filtered.

===================================================================

M	intern/cycles/scene/pass.cpp

===================================================================

diff --git a/intern/cycles/scene/pass.cpp b/intern/cycles/scene/pass.cpp
index 791101e0940..a885ede50a4 100644
--- a/intern/cycles/scene/pass.cpp
+++ b/intern/cycles/scene/pass.cpp
@@ -182,6 +182,7 @@ PassInfo Pass::get_info(const PassType type, const bool include_albedo)
       break;
     case PASS_POSITION:
       pass_info.num_components = 3;
+      pass_info.use_filter = false;
       break;
     case PASS_NORMAL:
       pass_info.num_components = 3;



More information about the Bf-blender-cvs mailing list