Log inGet started
World

First-person survival horror game called…

Branchmain
Branchesmain
Commit31ce1f0625

README.md

airDrift (effect)

Ambient drifting air particles, one entry per style, each a field that runs until stopped:

entrywhat it shows
firefliesyellow-green lights rising from the grass, wandering and blinking, glowing for bloom
cherryPetalspink notched sakura petals tumbling down, lit and translucent
autumnLeavesred, orange, gold and brown leaves swinging down
dustMotestiny specks that show only where light falls
pollenyellow and cream fluff floating up
embersorange sparks rising, flickering, burning out
snowsoft white flakes falling and swaying
mistWispsbig soft fog puffs drifting low
waterSprayfine droplets thrown up at a waterfall's foot, with rainbow sparkle
ashragged grey flakes falling, some smouldering
glowSporesbioluminescent teal and green motes pulsing
drizzlethin streaks of light rain
sparklestwinkling four-pointed stars drifting up

Every entry takes the same inputs, all numbers (a play keeps number inputs only): count (particles at full density), areaX / areaY / areaZ (box size, m), centerX / centerY / centerZ (world middle of the box), follow (1 wraps around the camera), density (0..1 share shown), windX / windY / windZ (m/s), offsetX / offsetY / offsetZ (drift kept from earlier winds), tintR / tintG / tintB and tintAmount (colour override), swayScale (mood), sizeScale, seed.

Each graph under graphs/ calls parts/field: particles born at seeded spots through the box on sim.particles, pulled toward the style's fall or rise speed, carrying seed, life and size in their instance scale. shaders/driftCard draws them: the sprite shape, camera-facing or 3D tumbling cards or streaks, sun, shadow, ambient and lamp lighting, HDR glow, blink, flicker, rainbow, and on the GPU the wind, sway, spin, wrap-around inside the box and the density fade.

The Drift component and ambientDrift.api play these entries for you.