Log inGet started
World

Procgen Effects Showcase

Branchmain
Branchesmain
Commit99ff90d12c

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" })
OutputWhat it draws
rainThe falling rain, storm_streak shader
splashSplashes where rain lands, storm_streak shader
sheetsSheets of rain sweeping through, storm_sheet shader
bolt1 to bolt4The lightning bolts, lightning_bolt shader
sparksSparks where strikes land, storm_streak shader
smokeSmoke 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.