Pocket Putt Islands
- ..
- .metadata17 B
- README.md2.7 KB
- preview.png3.4 KB
- properties.yaml2.9 KB
- shader.wgsl11.2 KB
README.md
animWet
Stone paving and road asphalt that are wet after rain and dry with one live amount, wetness (0 dry .. 1 soaked; follows the wearer's am.wetness). The base surface is world-aligned (triplanar by world position in metres, tile_size per repeat, per-axis frames so nothing is mirrored and normals face out on every face). Wet stone darkens (wet_darken, porosity) and turns glossy; water stands first in the joints and pores (the mask's height) and then in flat near-mirror puddles (roughness 0.04, geometric normal) in a broad never-repeating field of dips (basin_size metres, scaled by puddles); as wetness falls the raised stone faces and edges dry pale and matt first, in patches, and the puddles last. Only up-facing faces hold standing water; walls darken and gloss. Textures: base_color_texture (sRGB), normal_texture (green-up), mask_texture (R ambient occlusion, G roughness, B height). 3 textures.
Gloss and albedo grade
wet_roughness (default 0.22) is the perceptual roughness of wet, not flooded, stone at full wetness: lower it for a stronger sheen (asphalt uses 0.1). albedo_gain, albedo_tint, albedo_saturation, albedo_contrast grade the dry stone in linear before the water (neutral by default). A color property is clamped to 0..1, so brightness goes in the gain and warmth in a tint below 1 in blue. Standing water darkens the stone under it only mildly (a puddle reads by its mirror reflection, not by turning black).
Coarse aggregate and wet film (round 3)
aggregate (0 off, default) lays a procedural chip aggregate over the texture: rounded chips aggregate_size metres across (non-periodic Voronoi in each projection's own frame, so it never repeats and is never mirrored), about three in five cells holding a chip sunk in the texture's binder with a gap that varies per chip, mostly grey with about one in six warm tan and a few pale ones, aggregate_tone the linear brightness of a mid chip. Chips stand proud (they dry first; the binder between holds water at joint_depth) and add a gentle rounded relief; a 0.7 m mottle of exposed-aggregate patches varies the tone. Only projections with weight above 0.02 build it. wetAsphalt uses it (24 mm, tone 0.12, base texture at 3 m); wetPaving leaves it off.
Wet sheen reaches wet_roughness by wetness ~0.7, and a wet film smooths the stone normal towards the geometric one (up to 75% on faces that look up, 35% on walls) so flats give a coherent mirror sheen. Puddles stay below about half of the dip field even soaked, so at 1 they are separate pools; the stone under a puddle is darkened (x0.55) so the reflection dominates.