Commit: 53c2f59f36d9202b3a80a5f43d39f11794a807d0
Author: Sergey Sharybin
Date:   Wed Jun 15 12:16:49 2016 +0200
Branches: cycles_bvh
https://developer.blender.org/rB53c2f59f36d9202b3a80a5f43d39f11794a807d0

Cycles: Fix shadow rays were ignoring unaligned nodes

A residue from development.

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

M       intern/cycles/kernel/geom/geom_qbvh_shadow.h

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

diff --git a/intern/cycles/kernel/geom/geom_qbvh_shadow.h 
b/intern/cycles/kernel/geom/geom_qbvh_shadow.h
index 6a6e191..294651f 100644
--- a/intern/cycles/kernel/geom/geom_qbvh_shadow.h
+++ b/intern/cycles/kernel/geom/geom_qbvh_shadow.h
@@ -110,8 +110,7 @@ ccl_device bool BVH_FUNCTION_FULL_NAME(QBVH)(KernelGlobals 
*kg,
                                float4 inodes = kernel_tex_fetch(__bvh_nodes, 
nodeAddr+0);
 
 #ifdef __VISIBILITY_FLAG__
-                               if((__float_as_uint(inodes.x) & 
PATH_RAY_SHADOW) == 0 ||
-                                  (__float_as_uint(inodes.x) & 
PATH_RAY_NODE_UNALIGNED)) {
+                               if((__float_as_uint(inodes.x) & 
PATH_RAY_SHADOW) == 0) {
                                        /* Pop. */
                                        nodeAddr = 
traversalStack[stackPtr].addr;
                                        --stackPtr;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to