Log inGet started
World

Procgen Effects Showcase

Branchmain
Branchesmain
Commit99ff90d12c

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

PropertyTypeDefaultMeaning
unusedfloat0The one entry properties.yaml lists (range 0 to 1). Every value the shader reads comes from the lanes below.

Lanes

LaneCarries
data0.xLife, 0 to 1.
data0.yRadius of the front in metres; sets the ring's width relative to the disc.
data0.zStrength: scales the bend and the glare.
data0.wSeed for the ripple noise.