12345678910111213141516171819 |
- //This file is automatically rebuilt by the Cesium build process.
- export default "#ifdef VECTOR_TILE\n\
- uniform vec4 u_highlightColor;\n\
- #endif\n\
- varying vec2 v_st;\n\
- void main()\n\
- {\n\
- czm_materialInput materialInput;\n\
- materialInput.s = v_st.s;\n\
- materialInput.st = v_st;\n\
- materialInput.str = vec3(v_st, 0.0);\n\
- czm_material material = czm_getMaterial(materialInput);\n\
- gl_FragColor = vec4(material.diffuse + material.emission, material.alpha);\n\
- #ifdef VECTOR_TILE\n\
- gl_FragColor *= u_highlightColor;\n\
- #endif\n\
- czm_writeLogDepth();\n\
- }\n\
- ";
|