CheckFloatTexturePrecisionFS.js 303 B

123456789
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "uniform sampler2D u_floatTexture;\n\
  3. void main()\n\
  4. {\n\
  5. float actual = texture2D(u_floatTexture, vec2(0.5, 0.5)).r;\n\
  6. float expected = 123456.0;\n\
  7. gl_FragColor = vec4(abs(actual - expected), 0.0, 0.0, 1.0);\n\
  8. }\n\
  9. ";