Procgen Effects Showcase
- ..
- .metadata258 B
- README.md1.7 KB
- preview.png48.1 KB
- properties.yaml74 B
- shader.wgsl2.4 KB
README.md
blast_stone
Procedural weathered stone (surface/PBR) for the wall and everything it breaks into. Per-instance
lanes: tint, seed, heat (emissive glow), soot. The pattern is computed from the mesh UV scaled by
5.5 and offset by the seed, so every block reads differently. A height field of fx_noise fBm plus
inverted worley cells gives pitting, and its finite-difference slope bends the normal. The base is
warm sandstone, mixed between (0.27, 0.21, 0.16) and (0.42, 0.34, 0.26) by the tint lane, with
broad fBm shading, fine speckle, darker crack lines, a grimy course toward the low end of the UV,
and near-black soot by the soot lane. Roughness is 0.93 (0.85 along cracks). A hot block glows
orange (2.6, 0.75, 0.12) through a vein pattern, scaled by the square of heat.
The wall_blast graph (blast/wall_blast.procGraph) uses it through stone_mat on unit boxes
scaled to blocks, with shadows on: the wall blocks that stand, the blocks the blast takes (held in
place until the detonation), and the flying rubble. Standing blocks carry heat 0 and soot 0; rubble
carries a heat ramp from 0.6 at birth to 0 and a soot ramp from 0.1 to 0.85 over its life.
The shader includes fx_noise.
Properties
| Property | Type | Default | Meaning |
|---|---|---|---|
unused | float | 0 | The one entry properties.yaml lists (range 0 to 1). Every value the shader reads comes from the lanes below. |
Lanes
| Lane | Carries |
|---|---|
data0.x | Per-block tint 0 to 1, between the darker and lighter sandstone. |
data0.y | Per-block seed: offsets the noise pattern. |
data0.z | Heat 0 to 1: orange emissive glow, scaled by heat squared. |
data0.w | Char and soot 0 to 1: blends the albedo toward near-black. |