DepthView.glsl 201 B

123456789
  1. uniform sampler2D depthTexture;
  2. varying vec2 v_textureCoordinates;
  3. void main(void)
  4. {
  5. float depth = czm_readDepth(depthTexture, v_textureCoordinates);
  6. gl_FragColor = vec4(vec3(depth), 1.0);
  7. }