decompressTextureCoordinates.js 342 B

12345678910
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "vec2 czm_decompressTextureCoordinates(float encoded)\n\
  3. {\n\
  4. float temp = encoded / 4096.0;\n\
  5. float xZeroTo4095 = floor(temp);\n\
  6. float stx = xZeroTo4095 / 4095.0;\n\
  7. float sty = (encoded - xZeroTo4095 * 4096.0) / 4095.0;\n\
  8. return vec2(stx, sty);\n\
  9. }\n\
  10. ";