Log inGet started
Package

ForestMaterials.module

This package holds more than this page lists. See all of its files in its world.

README.md

ForestMaterials

Resolves every Beechwood Brook forest surface by name to a material asset, for the looks real, painted, toon and the seasons spring, summer, autumn, winter. Called by the forest prop generators and the forest builder.

local FM = require("~forestMaterials.ForestMaterials")
local mat = FM.get("leafOak", { season = "autumn" })     -- never nil
for _, s in FM.surfaces() do print(s, FM.source(s)) end
if FM.leafless("leafOak", "winter") then --[[ draw no canopy ]] end

It prefers this package's own materials/<surface>[_<season>][_<look>] and falls back to the installed collections.