Silhouette.js 434 B

1234567891011
  1. //This file is automatically rebuilt by the Cesium build process.
  2. export default "uniform sampler2D colorTexture;\n\
  3. uniform sampler2D silhouetteTexture;\n\
  4. varying vec2 v_textureCoordinates;\n\
  5. void main(void)\n\
  6. {\n\
  7. vec4 silhouetteColor = texture2D(silhouetteTexture, v_textureCoordinates);\n\
  8. vec4 color = texture2D(colorTexture, v_textureCoordinates);\n\
  9. gl_FragColor = mix(color, silhouetteColor, silhouetteColor.a);\n\
  10. }\n\
  11. ";