Log inGet started
Package

sengokuCore.shaderModule

README.md

sengokuCore

The surface model every sengokuMaterials shader shares (sengokuSurface, sengokuToon). It places the baked maps at real size on any object through masonryMaterials' masonryProjection (no UVs needed), draws the castle-town patterns analytically so they stay crisp up close (tatami with its dark cloth edge, shoji kumiko grid, namako diagonal tile with raised plaster joints, koshi lattice slats, lantern ribs, fusuma gold flecks), applies the weathered look (sun bleaching, grime streaks, moss on up-facing hollows) and the rain response: wet darkening by porosity, lower roughness, and puddles with animated rain-drop ripples on flat up-facing ground, driven by the rain property that SengokuRain keeps equal to the engine's surface-weather wetness. sg_surface(input) returns an SgSurface; sg_ripples(xz, time, amount) is the ripple normal the water shader reuses.