larsmaxfield / maplibre-gl-js

MapLibre GL JS - Interactive vector tile maps in WebGL2
https://maplibre.org/maplibre-gl-js/docs/
Other
0 stars 0 forks source link

Add opacity to elevation layer, mimicking 'raster-opacity' in raster layers #3

Open larsmaxfield opened 3 months ago

larsmaxfield commented 3 months ago

Add this to the elevation paint property, and simply assign the opacity to the fragColor in the elevation shader fragColor = vec4(colormap, u_opacity).