Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

MotesOptions

A mote’s look and motion, as Motes takes them.

Property Type Default value Description
anisotropy? number 0.4 How much more light a mote sends on along the light’s way than back toward it, so dust between the camera and the sun glows, as the anisotropy of Unity’s and Godot’s volumetric fog: 0 sends it every way alike. 0 or more, under 1.
color? ColorRepresentation a pale warm white, #fff3d6 The mote’s colour, lit by the light it hangs in.
count? number 600 How many motes fill the box round the camera. A whole number, 1 or more.
distance? number 8 Metres the box reaches from its middle along x and z. Its middle stands half this ahead of the camera, so most motes are in view. Above 0.
emissiveIntensity? number 0 How much of color the mote gives off on its own, on top of the light it takes, as three’s emissiveIntensity: 0 for dust, about 2 for a spark. A mote that gives off light still shows only where light falls. 0 or more.
height? number 4 Metres the box spans up and down, centred on the camera’s height. Above 0.
minLight? number 0.1 The light straight from a source at which a mote shows whole, in the units a light’s intensity takes: under half of it the mote hides, so a mote in a dim light, such as the moon’s, stays hidden however dark the sky. 0 or more.
minLightRatio? number 1 The light a mote needs to show: the light it takes straight from the sun, the moon, a lamp or a light mask’s fill light, over the sky’s light at its place. A mote shows whole at this ratio and shrinks to nothing as the ratio falls to none, so the motes thin out at a shadow’s edge rather than end on it. Above 0.
size? number 0.015 Metres across one mote. A mote is never drawn smaller than one and a half pixels, so a far one never crawls. Above 0.
turbulence? number 0.2 Metres each mote strays from its path, each its own way, as Unity’s Noise module and Godot’s turbulence stray a particle. 0 or more.
turbulenceSeconds? number 8 Seconds one stray takes: about 8 for dust, under 1 for a moth’s flutter. Above 0.
twinkle? number 0.3 How far each mote’s brightness pulses as it turns, 0 to 1.
velocity? readonly [number, number, number] [0, 0, 0] Metres per second the whole cloud moves, on top of the wind, such as sparks rising.
windShare? number 0.02 The share of the look’s wind speed the cloud moves at, down the wind. 0 or more.