Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
import * as THREE from 'three';
import { Swarm, PLAGUE_SIM, PLAGUE_LOOK, PLAGUE_BODY_VERT, PLAGUE_BODY_FRAG } from './plague-swarm.glsl.js';
// Plague Swarm (Acid hero). Thousands of bioluminescent insects, flocking for real on the GPU
// (plague-swarm.glsl.js: particle-in-cell boids, alignment / separation / cohesion from a 32^3
// velocity-density grid, plus a goal field and curl turbulence). Reference: desert-locust swarm
// and starling-murmuration footage, Photinus fireflies (whose flashes lock into travelling waves).
// Anticipation: the swarm boils out of the caster's orb and churns into a murmuration overhead.
// Release: it pours off the cloud in a river that swoops over the arena onto the target.
// Impact: it wraps the dummy in a spinning ball, a third of it lands and crawls on the dummy, the
// lanterns sync into flash waves, and the dummy corrodes: dissolve, acid paint pooling under it,
// sizzle, drips and fumes, two orbiting green lights throwing its shadow round the floor.
// Aftermath: the swarm lifts off and scatters over the rim; a share die and drop, their lights
// going out on the floor; an eaten dummy over a corroded stain.
// Every insect is a motion-blurred chitin streak with blurred wings that glint in the sun (fx pass)
// and a lantern (lines pass); their light also lands on the floor through the swarm's floor light.
_a _b _c _d
_m4
x x x x x
fx fx
u
swarm fx u
swarm
fxswarm
glow swarm
fxglow swarm
body swarm swarm
body
body
fxbody
sizzle
drip
fume
stain
glowA glowB
p
glowAp glowBp
uglowA
uglowB
up
owner
lead leadPrev centroid
cloud0 mid tc
d c
d d d
d d d
owner
swarm
swarm
body
swarm
t k t
outccloud0 k
out t c k
out t k
out
pA
s s
k s s s s s i k
outi i pA i k mid k k tc i i pA i k mid k k tc i i pA i k mid k k tc
k k k
p d c
name
owner owner c owner
swarm swarm
owner c
swarm
swarm
body
d c
d c
d p
c p
d d d d
d fx
d d d d dglowA
d d
cloud0c_a
tcc c c c
midcloud0tc _ad
c lead leadPrevlead centroidlead
c pA
swarm
name
c
c owner
c owner c
p d c c
swoop p tEnv swoop tDis d
dm c fxc
leadPrevlead
c lead
lv _blead leadPrevdt dt
env tEnv
dis tDis
cloudR
ulead lead lead cloudR p
ulv lv lv
upA pA pA swoop
umid mid mid
utc tc tc
u p
p p
utc tc tc
landing tEnv p
u dis dm landing
u p p p p
u p p
uc c c
u tDis tDis
fadeFly tDis
up p fadeFly p tEnv dis
swarm p
dm
udm dm dis
u_m4dm
u
sMid swoop
_dlead sMid sMid _d _dtc
centroid_d dt
gs cloudR env
gb swarm cell gs
gbcentroid gs centroid gs centroid gs cell
lb swarm snap lb
lb centroid lb snap snap
lb centroid lb snap snap
swarm
alive swarm p fadeFly
base p p alive
d
d
env centroid cloudR base
a d
tc a tc tc a
base
glowA
env d d
d fx
d d d dglowBglowA
d
a d
dtc a tc tc a
d base env
d tEnv
d
fx
fx _atc p p p glowA
d fx
d
v d
v vtc tc v v
v p v p v v
eating env dis
eating
k tEnv d
dm
dm dm p k
d dt
d
d fx
a fx
dm_aa a fx
d dt
d
d
fx tc tc k p p c
dm
hgt
sizzledm dm sizzledm hgt dm sizzle p k dt
fumedm dm fumedm dm fume p dt
dripdm dm drip drip p k dt
staintc tc stain p stain p k dt
d d p env dis
dis d
d
d d
fx
d fadeFly d d