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

PaintedGrainOptions

How a painted surface’s own map shows: as a flat mass in the sun and the distance, and as painted grain under a lamp. The grain is the map’s difference from its own blur, about 16 texels across, so the map’s colour masses stay and only its fine detail flattens.

Property Type Description
contrast? number The share of the grain the sun, the moon and the sky show, from 0, flat, to 1, the map as painted. Left out, 0.3.
fadeFar? number Metres from the camera where the grain is flat, above fadeNear; Infinity keeps it at every distance. Left out, 40.
fadeNear? number Metres from the camera where the grain begins to flatten. Left out, 12.
localLightContrast? number The share point, spot and rectangular lights and the light mask’s fill light show, from 0 to 1. Left out, 1.