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

setMaterialWeather

setMaterialWeather(material, materialWeatherOptions): void

Keeps material out of the weather’s wetness or its snow, or lets it take either again: a cloak kept dry, a roof under an awning kept bare. A skinned model’s materials, the engine’s sprites and water take neither, and leaf cards take snow on their tops and no wetness, unless set here. It compiles the material once more where that changes.

Parameter Type
material Material
materialWeatherOptions MaterialWeatherOptions

void