You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

11 lines
210 B

varying vec2 V_Texcoord;
uniform sampler2D U_MainTexture;
void main()
{
float depthValue=texture2D(U_MainTexture,V_Texcoord).r;
depthValue = pow(depthValue, 32);
gl_FragColor=vec4(vec3(depthValue),1.0);
}