38 for(
float i=0;i<
depth;i++)
48 x = 1.0f - volPosition.x;
49 y = 1.0f - volPosition.y;
55 z = 1.0f - volPosition.y;
59 y = 1 - volPosition.x;
60 z = 1.0f - volPosition.y;
65 z = 1.0f - volPosition.y;
68 x = 1 - volPosition.x;
70 z = 1.0f - volPosition.y;
73 colorB.a = texture(
volume,vec3(x,y,z)).r;
78 if(
color.a==1){
break;}
uniform vec4 regionColor1
uniform vec4 regionColor2
uniform float regionSeperator