Log inGet started
World

Procgen Effects Showcase

Branchmain
Branchesmain
Commit99ff90d12c

README.md

effectShowcase

The procedural effects of the Procgen Effects Showcase world. Each one is a .procGraph that plays through a Generator, and every shader, material and module a graph draws with sits beside it in this package, so the package carries everything its graphs need. Each graph's README says what it makes, how to place it and what each of its inputs changes.

Contents

FolderGraphsWhat they make
combat/impact, muzzleFlash, tracerA round striking a hard surface, the bloom at a barrel as a weapon fires, and the glowing streak of a round in flight. They draw with fxFlash, fxSmoke and fxSpark in combat/shaders/.
blast/wall_blastA charge blowing a breach through a stone block wall, on a 9.6 s loop.
storm/storm, towerA thunderstorm around a lone tower: wind-driven rain, lightning striking on the schedule schedule.module keeps, and sparks and smoke where strikes land. tower is the stone keep it stands around.
rift/arcane_riftA rift tearing open in the ground, its motes and rubble moved by the compute shaders in rift/compute/.
dragon/dragon_breathA dragon's fire breath sweeping a courtyard: a flame jet, rolling smoke and drifting embers.
launch/launchA heavy-lift rocket liftoff on one looping timeline, with the heat-haze material rk_haze_mat.
waterfall/wf_env, wf_water, wf_spray, wf_foam, wf_mistA waterfall built in parts: the cliff, basin and boulders, the falling and still water, the droplets, the foam where the falls land, and the mist with its rainbow. Its water materials are in waterfall/materials/.
shaders/fx_noise, the noise functions the waterfall and wall blast shaders include.

Playing one

A graph plays on a Generator component bound to it:

-- `graph` is the graph's reference: the AssetRef `asset.resolve` or a search returns for it.
local e = entity.spawn("impact", { position = { 0, 1, 0 } })
e.component.add("Generator", { graph = graph, playOn = "load" })

Set a graph's inputs with the Generator's params, e.g. params = { size = 3 }.