 
 		if (Depth > CurrentDepth)
 		{
-			if (Debug != 0)
+			if (Debug == 1)
 			{
-				gl_FragColor = vec4(0, 1, 1, 1);
+				gl_FragColor = vec4(0, 0, 0, 1);
 				return;
 			}
 			break;

		length_acc += delta_dir_len;
		if (length_acc >= len || alpha_acc > 1.0)
		{
			if (Debug != 0)
			{
				gl_FragColor = vec4(1, 1, 0, 1);
				return;
			}
			break; // terminate if opacity > 1 or the ray is outside the volume
		}

		if (i == 50 && Debug != 0)
		{
			gl_FragColor = vec4(1, 0, 1, 1);
			return;
		}
	}



		FrontPosition = CameraPosition.xyz;
		if (Debug != 0)
		{
			//gl_FragColor = vec4(0, 0, 1, 1);
			//return;
		}
	}

