Procgen Effects Showcase
- ..
- .metadata385 B
- README.md1.3 KB
- graph.json116 KB
- init.luau20.7 KB
- preview.png2.6 KB
README.md
storm
A thunderstorm around a lone tower: rain driven slantwise by the wind that splashes off the ground
and the tower, lightning bolts striking on the schedule schedule.module beside it keeps, sparks and smoke
where each strike lands, and sheets of rain sweeping through. It is simulated on the GPU in one
solver family.
-- `graph` is this graph's reference: the AssetRef `asset.resolve` or a search returns for it.
local e = entity.spawn("storm", { position = { 0, 0, 0 } })
e.component.add("Generator", { graph = graph, playOn = "load", ending = "loop" })
| Output | What it draws |
|---|---|
rain | The falling rain, storm_streak shader |
splash | Splashes where rain lands, storm_streak shader |
sheets | Sheets of rain sweeping through, storm_sheet shader |
bolt1 to bolt4 | The lightning bolts, lightning_bolt shader |
sparks | Sparks where strikes land, storm_streak shader |
smoke | Smoke rising where strikes land, storm_puff shader |
The timeline has no end and plays at 60 fps. In the Procgen Effects Showcase world's fx_storm scene, the
StormDirector component on the same entity reads this clock and, on the same schedule, swings
the sun to each bolt, blazes point lights at the strike, lights the cloud deck and the puddles,
shakes the camera and plays the thunder.