Vector3DTilePolylinesVS.js 845 B

1234567891011121314151617181920212223
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "attribute vec4 currentPosition;\n\
  3. attribute vec4 previousPosition;\n\
  4. attribute vec4 nextPosition;\n\
  5. attribute vec2 expandAndWidth;\n\
  6. attribute float a_batchId;\n\
  7. uniform mat4 u_modifiedModelView;\n\
  8. void main()\n\
  9. {\n\
  10. float expandDir = expandAndWidth.x;\n\
  11. float width = abs(expandAndWidth.y) + 0.5;\n\
  12. bool usePrev = expandAndWidth.y < 0.0;\n\
  13. vec4 p = u_modifiedModelView * currentPosition;\n\
  14. vec4 prev = u_modifiedModelView * previousPosition;\n\
  15. vec4 next = u_modifiedModelView * nextPosition;\n\
  16. float angle;\n\
  17. vec4 positionWC = getPolylineWindowCoordinatesEC(p, prev, next, expandDir, width, usePrev, angle);\n\
  18. gl_Position = czm_viewportOrthographic * positionWC;\n\
  19. #ifdef LOG_DEPTH\n\
  20. czm_vertexLogDepth(czm_projection * p);\n\
  21. #endif\n\
  22. }\n\
  23. ";