   vec4 tmp;
   float att;
   float spot;
-  
+
   g1.x=texture3D(dataSetTexture,pos+xvec).x;
   g1.y=texture3D(dataSetTexture,pos+yvec).x;
   g1.z=texture3D(dataSetTexture,pos+zvec).x;

    {
    g2=vec3(0.0,0.0,0.0);
    }
  
  vec4 color=colorFromValue(value);
  
  // initialize color to 0.0
  vec4 finalColor=vec4(0.0,0.0,0.0,0.0);        
  
  if(gl_LightSource[0].position.w!=0.0)
    {
    // We need to know the eye position only if light is positional

    {
    att=1.0;
    }

  if(att>0.0)
    {

    if(gl_LightSource[0].spotCutoff==180.0)
      {
      spot=1.0;
