Log inGet started
World

Procgen Effects Showcase

Branchmain
Branchesmain
Commit99ff90d12c

README.md

rift_plume

A rising column of arcane light for the rift: an upright card turned about the world Y axis toward the camera (zero_billboard_axis), filled with climbing, twisting wisps, brightest at the base and fading into the dark. Lane 0 is the HDR colour and opacity, lane 1.x a per-card phase.

Across the card the column is a Gaussian body that narrows from full width at the base to 0.3 of it at the top and sways on a sine that climbs with time. Two layers of rn_fbm2p noise, periodic along y with a period of 16 and scrolled with rn_wrap, stream upward through it, so the loop is seamless. The column fades in over the bottom 8 percent, falls off as (1 - y)^2.2 toward the top, and carries an extra glow right at the base. It returns the colour times its coverage times gain, with the coverage as alpha.

The arcane_rift graph (rift/arcane_rift.procGraph) draws its plume output with it through plumeMat (additive, culling off, depth writes off, gain wired to the graph's intensity input): four cards spaced along X from -0.9 to 0.9 at height 3.6, each 2.2 to 3.4 wide and 7.5 tall, coloured (1.1, 0.4, 3.0) at opacity 0.5, with a random phase each. In the Procgen Effects Showcase world, the fx_rift scene plays the graph.

The shader includes @builtin::shaderModules.billboard and rift_noise.

Properties

PropertyTypeDefaultMeaning
gainfloat1.0Multiplies the output colour (range 0 to 20).
vertexBoundsDilationfloat1.7How far the vertex hook moves a vertex past the mesh, in world units: the culling bounds grow by it so a moved vertex stays inside them.

Lanes

LaneCarries
data0.rgbHDR colour.
data0.aOpacity.
data1.xPer-card phase; the shader multiplies it by 10 and offsets the sway and the wisps with it.