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

PaintedOcclusionOptions

How a painted surface’s baked occlusion darkens its light. The value is the model’s _OCCLUSION vertex attribute, 1 open and 0 shut, the same one foliage reads on leaves; a mesh without it is open.

Property Type Description
directIntensity? number How much darkens the direct light of the sun, the moon and the lamps, from 0 to 1. Left out, 0.25, as Unity URP’s ambient occlusion’s Direct Lighting Strength, so a crown’s heart stays dark where no shadow map draws, as at Low.
indirectIntensity? number How much of the baked value darkens the sky’s, the environment’s, the ground’s bounce and the light mask’s fill light, from 0 to 1, as three’s aoMapIntensity. Left out, 1.