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

useEmissive

useEmissive(material, emissiveOptions?): void

Drives material’s emissiveIntensity by the hour each frame, from day to night by the look’s night share, so windows and lantern glass glow at night alone. Every mesh wearing the material glows as one: a lantern that flickers with its own lamp wears a material of its own. Unmounting gives the material its own intensity back.

Parameter Type
material EmissiveMaterial | RefObject<EmissiveMaterial | null> | null
emissiveOptions EmissiveOptions

void