A small glowing point the engine keeps in sight from far: a lantern, a
lit window, a run of resin on a trunk. Once the thing itself is smaller
on the screen than minPixels, a soft sprite of that many pixels stands
in for it, as bright per pixel as the thing up close, under the scene’s
fog, hidden by the ground and anything solid in front, and bloomed where
the quality level draws bloom. The engine reads the record each frame,
so a game moves or changes the point by writing it.
| Property |
Type |
Default value |
Description |
color? |
ColorRepresentation |
a warm amber, #ffb04a |
The light’s colour: a CSS colour, a number, or a Color the game may change in place. |
intensity? |
number |
2 |
As an emissive surface’s intensity: the sprite’s light per pixel at its middle is the colour times this, so give the near thing’s own emissive values. Past the bloom’s threshold it blooms where the level draws bloom. 0 or more: 0 puts it out for a while. |
minPixels? |
number |
3 |
The drawing-buffer pixels across which the sprite holds at its smallest, so 1.5 CSS pixels for 3 at a pixel ratio of 2: its full-bright middle is about this wide, with a soft edge past it. 1 or more. |
position |
Vector3Like |
undefined |
Where it glows, in the world, in metres: a Vector3 the game moves in place, or any { x, y, z }. |
size? |
number |
0.2 |
Metres across the thing that glows, such as 0.05 for a run of resin or 0.3 for a lantern’s glass: the sprite fades in as the thing shrinks from twice minPixels to minPixels on the screen, and the thing’s own mesh carries it nearer. Above 0. |