Log inGet started
World

Procgen Effects Showcase

Branchmain
Branchesmain
Commit99ff90d12c

README.md

wf_sheet_main

Waterfall curtain material, the middle of the three staggered curtains of the falls. waterfall/wf_water.procGraph builds the still and falling water of the waterfall and assigns this material to one of its parts by name; the graph's header states that the water materials are .material assets so the Model receives their blend, cull and depth-write state. The WaterfallWater Generator entity in the Procgen Effects Showcase world's fx_falls scene runs that graph. The graph builds each curtain from a 6.8 x 21.5 m grid of 44 x 220 cells stood upright with its top at the lip, and assigns this material to curtain_main; the graph's comment states that the vertex shader places the real curtain and the grid only carries bounds for culling.

Shader: wf_sheet (waterfall/shaders/wf_sheet.shader). Its README: a waterfall curtain with a ballistic vertex path off the lip, packet-timed ribbon noise that tears with distance fallen, aeration to white, backlit scatter and a refracted background. From its header: the vertex stage places every vertex on the path water takes off a lip, leaving with out_speed and falling under gravity (9.81), so the curtain bows out and widens; the fragment pattern is pinned to packets of water, so its streaks stretch as the water speeds up and the sheet tears into ribbons as the breakup threshold rises with the distance fallen. The cliff behind shows through, bent by the ripples.

Render state: blend: alphaBlend, cull: none, depth_write: false.

Properties

  • z0: 42: z of the lip line the water leaves from (the graph's Z0).
  • base_y: 21.9: height of the lip, the top edge of the sheet.
  • height: 21.5: drop from the lip to the plunge.
  • width: 9.2: width of the sheet at the lip (default 6.6).
  • out_speed: 1.7: horizontal speed the water leaves the lip with; the sheet moves out_speed times the fall time away from z0 toward -z (default 1.7).
  • spread: 0.22: extra width at the bottom, as width x (1 + spread x s) with s running from 0 at the lip to 1 at the plunge (default 0.22).
  • seed: 3: seed for the sway and the noise patterns (default 3).
  • density: 1.15: multiplier on the sheet's body coverage (default 1.15).
  • z_bias: 0: z offset subtracted from the whole sheet (default 0); the middle curtain sits at the unshifted position.