OptionaltypeOptionalcountMaximum particle count at intensity 1. Default: derived from area at a
constant density (~0.65 drops/unit² rain, ~0.5 flakes/unit² snow), so
resizing the volume keeps the same on-screen density.
OptionalareaSide length of the particle volume in world units. Size it to cover the camera's ground footprint at max zoom — the volume rim (faded) should stay off screen. Default 140 (matches the default camera's 80-distance max zoom on a wide viewport).
OptionalheightHeight of the particle volume in world units. Default 30.
OptionalfallFall speed in world units/sec. Default 26 (rain) / 3.2 (snow).
OptionalwindHorizontal wind drift in world units/sec. Default (0, 0).
OptionalcolorParticle color. Default 0xc4d4e8 (rain) / 0xffffff (snow).
OptionalopacityParticle opacity at intensity 1. Default 0.5 (rain) / 0.9 (snow).
OptionalstreakRain streak length in world units (ignored for snow). Default 0.7.
OptionalswaySnow sway amplitude in world units (ignored for rain). Default 1.1.
OptionalsizeSnow flake size (perspective-attenuated; ignored for rain). Default 3.
OptionalintensityInitial intensity 0–1 (see setIntensity). Default 1.
'rain' (falling line streaks) or 'snow' (drifting soft points). Default 'rain'.