Realization of Mapbox polygon light effect vignette special effect

"WebGIS Rapid Development Tutorial" has been written_WebGIS Xiaozhi's Blog-CSDN Blog

I believe that many large screens need to display the luminous effect of the administrative area, as shown in the picture below:

 

 Compared with the ordinary polygon style, the border has a gradient glow effect, so this chapter will teach you how to achieve such an effect, so that your administrative districts, land plots and other polygonal elements can be displayed with a glow effect.

We do not rely on the underlying webgl technology, nor do we need to involve the concept of shaders, we only need to know a knowledge of optics or art.

So before explaining the principle, we first need to understand one thing, the two elements of luminescence. In fact, luminescence is a visual concept. When one color is brighter than another color, our eyes feel that it is luminous. Therefore, we need two bright and dark colors of the same color system. For details, please refer to my previous article:

Guess you like

Origin blog.csdn.net/lz5211314121/article/details/130359001