stairSurface.shader
- .metadata17 B
- README.md1.4 KB
- preview.png25.9 KB
- properties.yaml1.3 KB
- shader.wgsl13.2 KB
README.md
stairSurface
The lit surface every endless-staircase theme is drawn with: the mesh's vertex
colour is the painted colour (tread, nosing, riser, wall, coping) and the shader
cuts analytic surface detail on top of it, so the stairs read as a made
material with no texture memory at all. pattern picks the material:
| pattern | look |
|---|---|
| 0 | plain painted |
| 1 | wood boards with ring grain and butt joints |
| 2 | dressed stone blocks in courses |
| 3 | velvet carpet pile with a woven diamond |
| 4 | glossy candy glaze with sprinkle flecks and swirl bands |
| 5 | clear ice with frosted cracks and cloudy inclusions |
| 6 | brushed metal plate in riveted panels |
| 7 | dark neon glass tiles with a faintly glowing circuit grid |
| 8 | billowing cloud-stone with gold-veined marble |
| 9 | weathered temple stone with moss in the joints |
Detail is read from the mesh's uv, which endlessStairs.meshBuilder writes as
box-projected path-space metres, so patterns run continuously across chunk
seams and do not jump when the course rebases its origin. A bump normal is
derived from the same field so grain, joints and cracks catch the key light.
Knobs: detail (0 turns the pattern off), detail_scale (pattern size),
bump_strength, roughness, metallic, clearcoat, sheen_color,
emissive_intensity (self-glow in the vertex colour) and pattern_glow (how
much the neon grid lights up).