Log inGet started
Package

fantasyMaterials.package

Newest version

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

README.md

RecipesNature

The bake recipes for the nature family of fantasyMaterials (Rune and Ember): crimson and emerald dragon scales (a big dragon's flank on a 1.2 m repeat: 4 columns by 6 staggered rows of keeled, leaf-pointed plates, each showing about 300 x 390 mm, its outline and size jittered per scale and the layout shifted off the wrap lines; each plate tilts up toward its free edge so it stands 20 mm proud of the plate below on a 5 mm bullnose with a worn bead inside, is domed across and toward its edge and keeled down its lower middle, under crinkled leathery skin. The shading comes from the shape: a broad soft occlusion ramp where a scale comes out from under the row above and a narrow contact shadow right under that row's edges, both in the occlusion channel so the mips fade them rather than leaving a dark net at a distance; per-scale colour and gloss, worn lighter rims. One shared relief and gloss mask, dragonScale_normal / dragonScale_rm, and an albedo per colour; bake with bake("dragonScaleCrimson") and bake("dragonScaleEmerald")), elven wood (pale silvery fine-grained boards with a glowing leaf-and-vine filigree inlay whose ORM alpha carries a per-vine breathing phase) and starfield cloth (night-blue crushed velvet, violet nebula, ~400 gold and silver thread stars with a per-star twinkle id in ORM alpha).

It also bakes stainedGlassDetail for stainedGlassWindow with bakeGlassDetail(): it rebuilds Looking Glass's glassStained pane layout exactly (same Poisson points, seed 4401, same periodic Voronoi; FantasyBaker's poisson/cells are identical to GlassBaker's) and stores per pane R a random number, G the distance from the lead came, B density streaks at the pane's own angle (seeds = 1) and A grisaille paint (stippled matte, traced contour, and a rosette, drapery folds or leaf veins).

Loaded by FantasyRecipes, which passes its helpers and FantasyBaker in; M.recipes(H, B) returns { [id] = () -> Maps }. Bake with require("~fantasyMaterials.FantasyRecipes").bake(id) (the glass detail with require("~fantasyMaterials.RecipesNature").bakeGlassDetail()) and rebuild with FantasyCatalog.build(). Every field is periodic over one repeat, drawn at real size in metres, so each map tiles with no seam. Tool code: run it from a tool, a test or an execute call, never from a component.