Procgen Effects Showcase
- ..
- .metadata262 B
- README.md1.8 KB
- preview.png2.0 KB
- properties.yaml74 B
- shader.wgsl1.9 KB
README.md
blast_shock
Ground shockwave disc: refracting ring edge plus a hot leading glare, driven by lanes (life, radius,
strength, seed). It draws on a flat disc lying on the ground. Near the disc's rim a thin band bends
the scene behind it: the shader reads the scene colour through zero_scene_color_refract, pushed
radially outward from the centre (with the vertical push scaled by 0.35 for the foreshortened
ground), by 46 times the band's amount (its profile times the life fade times strength). The band
has a steep outer front and a long soft trail toward the centre, and its width wobbles with a
three-octave fx_noise fBm around the circle. A warm white glare (1.0, 0.86, 0.66) sits on the
leading edge. The ring is held at a thickness in metres, so it thins relative to the disc as the
front runs out, and the whole effect fades with the square of the remaining life.
The wall_blast graph (blast/wall_blast.procGraph) draws two fronts with it through its
shock_mat material (transparent blend): one at strength 1.0 that grows to a radius of 30, and a
second at strength 0.55, starting 0.12 s later, that grows to 24. Each lives 1.5 s; the graph scales
a unit plane to the front's diameter and writes data0 as (life, radius, strength, random seed).
The shader includes fx_noise and zero::scene_color.
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 | Life, 0 to 1. |
data0.y | Radius of the front in metres; sets the ring's width relative to the disc. |
data0.z | Strength: scales the bend and the glare. |
data0.w | Seed for the ripple noise. |