PolylineFS.js 691 B

123456789101112131415161718192021222324252627
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "#ifdef VECTOR_TILE\n\
  3. uniform vec4 u_highlightColor;\n\
  4. #endif\n\
  5. \n\
  6. in vec2 v_st;\n\
  7. \n\
  8. void main()\n\
  9. {\n\
  10. czm_materialInput materialInput;\n\
  11. \n\
  12. vec2 st = v_st;\n\
  13. st.t = czm_readNonPerspective(st.t, gl_FragCoord.w);\n\
  14. \n\
  15. materialInput.s = st.s;\n\
  16. materialInput.st = st;\n\
  17. materialInput.str = vec3(st, 0.0);\n\
  18. \n\
  19. czm_material material = czm_getMaterial(materialInput);\n\
  20. out_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n\
  21. #ifdef VECTOR_TILE\n\
  22. out_FragColor *= u_highlightColor;\n\
  23. #endif\n\
  24. \n\
  25. czm_writeLogDepth();\n\
  26. }\n\
  27. ";