Log inGet started
World

Beechwood Brook: A Temperate Forest to Walk, with Trees, Undergrowth and a Forest Builder

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.