Mixed map effects

Paint the map in watercolour on paper with your own shader and layer, under the plugin's bloom, grade and vignette.

View on GitHub
Map effects plugin 0.4.2Public previewSDK 1.0.0

Venice turns into a watercolour on cream paper, backlit by bloom, sharpened by a contrast grade and framed by a vignette.

  • BaseMapModule.get hides every label group and the ferry lines in one groups config, and POIsModule.get hides the POIs, so the painting carries no lettering.
  • MapEffects.addPass runs your shader inside the plugin’s WebGL chain, ahead of every overlay, so bloom, grade and vignette work on the painting.
  • The pass samples a paper tile through textures, uploaded once, and takes the paper’s colour as a vec3 uniform.
  • MapEffects.addLayer draws the bare paper margin above the vignette, so the margin stays clean, and capture() keeps it there.

Related examples