Map layer that generates rain. Only available in "mapbox" mode.
Arguments
- density
A number between 0 and 1 controlling the rain particles density. Default is 0.5.
- intensity
A number between 0 and 1 controlling the rain particles movement speed. Default is 1.
- color
A string specifying the color of the rain droplets. Default is "#a8adbc".
- opacity
A number between 0 and 1 controlling the rain particles opacity. Default is 0.7.
- center_thinning
A number between 0 and 1 controlling the thinning factor of rain particles from center. Default is 0.57.
- direction
A numeric vector of length 2 defining the azimuth and polar angles of the rain direction. Default is c(0, 80).
- droplet_size
A numeric vector of length 2 controlling the rain droplet size (x - normal to direction, y - along direction). Default is c(2.6, 18.2).
- distortion_strength
A number between 0 and 1 controlling the rain particles screen-space distortion strength. Default is 0.7.
- vignette
A number between 0 and 1 controlling the screen-space vignette rain tinting effect intensity. Default is 1.0.
- vignette_color
A string specifying the rain vignette screen-space corners tint color. Default is "#464646".