Cycles: Support visibility check for inner nodes of QBVH
[blender.git] / intern / cycles / kernel / geom / geom_qbvh_subsurface.h
index 84512a8783cf1948eb9c20c349ba06dda87a7d1e..bc717a0747ed321e0e3435cf85aabcc7cd19ac5c 100644 (file)
@@ -123,7 +123,8 @@ ccl_device void BVH_FUNCTION_FULL_NAME(QBVH)(KernelGlobals *kg,
                                                                        &dist);
 
                                if(traverseChild != 0) {
-                                       float4 cnodes = kernel_tex_fetch(__bvh_nodes, nodeAddr*BVH_QNODE_SIZE+6);
+                                       float4 cnodes = kernel_tex_fetch(__bvh_nodes,
+                                                                        nodeAddr*BVH_QNODE_SIZE+7);
 
                                        /* One child is hit, continue with that child. */
                                        int r = __bscf(traverseChild);