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.

10 lines
210 B

  1. varying vec2 V_Texcoord;
  2. uniform sampler2D U_MainTexture;
  3. void main()
  4. {
  5. float depthValue=texture2D(U_MainTexture,V_Texcoord).r;
  6. depthValue = pow(depthValue, 32);
  7. gl_FragColor=vec4(vec3(depthValue),1.0);
  8. }