 	real t = AT_MATH_INF;
 
 	cudaTextureObject_t node = ctxt->nodes[0];
-
-#ifdef ENABLE_PLANE_LOOP_BVH
 	aten::ray transformedRay = r;
 
 	int toplayerHit = -1;

		else {
			nodeid = (int)node1.w;
		}
	}
#endif

	return (isect->objid >= 0);
}

			node = ctxt->nodes[0];
			transformedRay = r;
		}
#else
		if (attrib.x >= 0) {
			// Leaf.
			const auto* s = &ctxt->shapes[(int)attrib.x];

			if (attrib.z >= 0) {	// exid
				if (hitAABB(r.org, r.dir, boxmin, boxmax, t_min, t_max, &t)) {
					aten::ray transformedRay;

