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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
material |
EmissiveMaterial | RefObject<EmissiveMaterial | null> | null |
emissiveOptions |
EmissiveOptions |
Returns
Section titled “Returns”void