   {
     return;
   }
-
+//d_output[y * texwidth + x] = make_uchar4(0, 128, 128, 255);return;
   const float u = (x / static_cast<float>(width)) * 2.0f - 1.0f;
   const float v = (y / static_cast<float>(height)) * 2.0f - 1.0f;
 

  mapIntImg();

  vvGLTools::Viewport vp = vvGLTools::getViewport();
  const int w = vvToolshed::getTextureSize(vp[2]);
  const int h = vvToolshed::getTextureSize(vp[3]);

  dim3 blockSize(16, 16);
  dim3 gridSize = dim3(iDivUp(w, blockSize.x), iDivUp(h, blockSize.y));

  const vvVector3 size(vd->getSize());
  const vvVector3 size2 = size * 0.5f;


    // In ordinary sphere mode, the intersection data is memorized.
    if (!intersectSphere(ray, sphereCenter, sphereRadius, &tsnear, &tsfar) && t_useSphereAsProbe)
    {
      d_output[y * texwidth + x] = make_uchar4(0);
      return;
    }
  }
