eyeToWindowCoordinates.js 282 B

123456789
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "vec4 czm_eyeToWindowCoordinates(vec4 positionEC)\n\
  3. {\n\
  4. vec4 q = czm_projection * positionEC;\n\
  5. q.xyz /= q.w;\n\
  6. q.xyz = (czm_viewportTransformation * vec4(q.xyz, 1.0)).xyz;\n\
  7. return q;\n\
  8. }\n\
  9. ";