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

PaintedSurfaceOptions

What definePaintedSurface paints.

Property Type Description
gradient? PaintedGradientOptions A vertical gradient the colour is multiplied by. Left out, none.
grain? false | PaintedGrainOptions How the material’s map shows by the light on it. Left out, the defaults of each field; false draws the map as three does.
occlusion? false | PaintedOcclusionOptions How the baked occlusion darkens the light. Left out, the defaults of each field; false reads none.
sunlit? PaintedSunlitOptions The colour the sun’s direct light paints the surface, and only the sun’s: any SunLight, the daylight rig’s by day and a game’s own; never the rig’s moon, a DirectionalLight, the lamps or the sky. While the rig carries the moon, no SunLight shows it. Left out, the surface’s own colour in every light.