You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
694 B
JavaScript
28 lines
694 B
JavaScript
//This file is automatically rebuilt by the Cesium build process.
|
|
export default "#ifdef VECTOR_TILE\n\
|
|
uniform vec4 u_highlightColor;\n\
|
|
#endif\n\
|
|
\n\
|
|
varying vec2 v_st;\n\
|
|
\n\
|
|
void main()\n\
|
|
{\n\
|
|
czm_materialInput materialInput;\n\
|
|
\n\
|
|
vec2 st = v_st;\n\
|
|
st.t = czm_readNonPerspective(st.t, gl_FragCoord.w);\n\
|
|
\n\
|
|
materialInput.s = st.s;\n\
|
|
materialInput.st = st;\n\
|
|
materialInput.str = vec3(st, 0.0);\n\
|
|
\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\
|
|
\n\
|
|
czm_writeLogDepth();\n\
|
|
}\n\
|
|
";
|