       ((unsigned short*)(d_depth))[y * texwidth + x] = (unsigned short)(depth.z*float(USHRT_MAX));
       break;
     case vvImage2_5d::VV_UINT:
-      default:
       ((unsigned int*)(d_depth))[y * texwidth + x] = (unsigned int)(depth.z*float(UINT_MAX));
       break;
     }

         bool t_clipPlane,
         bool t_clipSphere,
         bool t_useSphereAsProbe,
         bool t_isaDepth
        >
__global__ void render(uchar4* d_output, const uint width, const uint height,
                       const float4 backgroundColor,

  float maxDiff = 0.;
  float3 maxDiffDepth = make_float3(0.0f, 0.0f, 0.0f);
  float lastAlpha = 0.;

  // Ensure that dist is big enough
  bool infinite = false;
  if(tnear+dist != tnear && tfar+dist != tfar)
    infinite = true;

  while(infinite)
  {
    // Test for clipping.
    const bool clippedPlane = (t_clipPlane && (((t <= tpnear) && (nddot >= 0.0f))
