Log inGet started
World

Tsukikage Castle Town: A Sengoku Town of Rooftops, Temples and Rice Terraces, with a Town Builder

README.md

SengokuSway

The wind-swaying versions of the castle town's cloth and screen surfaces: noren curtains in six colours, split-bamboo blinds (sudare), charred board and shoji paper, each in the realistic, weathered, festival and toon looks where it has one (33 materials under materials/, named <surface>[_look]_sway). They use the same sengokuMaterials shaders and textures as the plain surfaces, so they get wet in the rain and follow the look switch, with compliance set to 1 so the shader's vertex wind moves them.

Sway.get(surface, look) returns the material for a surface in a look, falling back to the realistic copy, or nil when the surface has no swaying version. Sway.materials[surface][look] is the table behind it, with one literal reference per material so every one ships with the package. sengokuProps' PropMaterials.get(surface, look, true) calls it for parts marked as cloth (noren, nobori, bunting, shide).

local Sway = require("sengokuMaterials.SengokuSway")
local m = Sway.get("norenIndigo", "festival")