Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
import * as THREE from 'three';
import { arenaSDF, LINES_BLENDING, FX_BLENDING } from '../../vfx/common.js';
import { BODY_VERT, BODY_FRAG, HALO_VERT, HALO_FRAG } from './ball-lightning.glsl.js';
// Ball Lightning (SPELLBOOK, Lightning hero). Charge: micro-arcs converge on the focus and a
// plasma sphere swells out of them (overshoot), motes streaming in. Travel: a slow, wandering
// drift (two-sine lateral weave, bob, jitter, speed surges). The sphere is an analytic shell in
// the lines pass (hot white core, a chord-weighted body, ridged-noise veins crawling over the
// front AND back of the shell, a soft sheath, vertex wobble) plus a half-res corona with a heat
// shimmer. Three bolt filaments churn inside it. It throws short snapped arcs to whatever is near:
// dummies (shock), pillars (electric scorch), the pool (flash + ripple) or the floor (a small
// Lichtenberg burn), each with a line light along the arc. Close to the target it destabilises:
// wobble, flicker and arc rate climb, it shudders and swells. Impact: it collapses for 0.1 s,
// then detonates: a stepped leader of 10+ branching bolts out from the centre (to the floor, the
t x a b a t t t
u x u u u u u
t s t s t s
fx
spark
drip
bead
mote
ozone
smoke
lineSpark
core glow plasma glowDim lightCol
uCore uGlow uVein
lastLook
p key p p p
corep glowp plasmap
glowDimglow
lightColcoreglow
uCorecore core core uGlowglow glow glow uVeinplasma plasma plasma
key lastLook
lastLook key
coreglow glowcore
core plasmaglow
sphereGeo
quadGeo
balls
i i i
uBall
body sphereGeo
fx uBall uCore uGlow uVein
halo quadGeo
fx uBall uGlow uCore
body halo
body halo
fxbody
fxhalo
balls body halo body halo
b balls b b b
b b b b
b b
b
bfx wob seed inst
b inst veins flash
bhx hi hd fx
st
_a _b _c _d _up
fx
core glowDim
a b branches sub jag width
glowWidth reveal snap
fx
x z radius heat char glowAmt seed
fx
glow
pos r0 r1 dur thick
dist intensity ground
fx
pool fx
x pool pool pad z pool pool pad
x z fxx z
env s w
lat d w env s d s d
outc c s d lat
out w env s d
out
c d reach p p
best reach kind dmi
i i fx i
dm fxi
dist dm dm
dist best fx best dist kind dmi i _cdm fx dm
pl fx
dist pl pl
dist best fx
best dist kind
_d pl pl
_cpl _d fx pl _d
reach fx
kind
_c fx pool pool pool pool pool
fx pool pool pool pool
kind
ang fx r fx p
_c ang r ang r
arc_c
arc_c
_aarc
len _a_c
arc _a _c len len fx len p
arc
arc arc fx
spark_c sparkarc spark p
d d d_c
kind _c _c p
kind dm fxdmi dm dm_darc
kind fx _c core fx _c
fxglow fx_c _c
i i i di di
a d a a
i i d i di
i i d i di
d d d d
d d d d d d d d
d d
p d stc
surge c c d
d p surge dt d
_bc
c d d c
j p d p
c j c c j c c j c
dt cc _bdt
c _bc
d d d
d c c d c c
p d stc
name
d
d
i i i di c c p
d fx
d d d dlightCol d d
d fx
d d d dcoreglow d
d fx
d d d d d d dc
d d d d d d d d d
d
d fx d fx d fx d c
name
d cc
dc _up
d d
d
d d
fx
sparkc sparkc spark p
d d d d
t d fx
t t p t p t t t t tglowcore
name
a d a a
d d
name
d
p d stc b d c
fl c c p
d dt
d dt
c
k c c grow k
d grow
b b d k fl p k k p k d
d dt
i i i
h di
h
d
_afx fx fx
h_a k p h
h h h
h p k fx
d d
mote mote mote p k dt
d d d k fl p
d d
c
inst d p
d c inst c c inst
inst fl d p
b b inst inst inst d d inst p p d
d dt
i i i
h di
h
th c i inst i ph c i i
_aph th ph ph th
h_a h_a
d h h h h h
h inst p fx
d d inst
d dt
d p
a d a c p d a
d inst fx p
c p d dt
drip drip dripc drip inst p dt
bead bead beadc bead inst p dt
ozone ozone ozone dt
d
fx
d d d inst d fl p
d d d d d p
d d
d
k c
d k k k
b b k k p k k k k p p d
i i i h di h h h p fx h
d d k p
d d d d
c c p d
a d dt bl p fade c c c
b
a b d
out a
b d bl a a out p out a out out p out p d
i i d i
h di
h
a h a h p
h
d a h h p
a dt h p
h dt
h h di
d a
d
fx p
spark spark spark p
d d p
i i d i
h di
h
h fx fade p fade
fx h
d
a d bl a d a
d d
d
d dt
c d d fl fade p
d d dt
c fade ozoned ozone ozone ozone fade dt
a d
h a
h
a dt
a a h a
hca d
h fx a a p
fx h
d d
c g d bl p s p
i i i di di
d g g
n p
d
splats
i i fx d n i
dm fxi
dm dm bl _cdm fx dm d _c
pl fx
d n
dist pl pl
dist bl _d pl pl _cpl _d fx pl _d d _c fx _c core
a0 fx
i d k i n i k
ang a0 k fx
k
r fx bl
_c ang r ang r
splats _c _c s splats
el fx r fx bl
_c ang el r el r ang el r
d _c
d
nCrawl
i i nCrawl i
ang i nCrawl fx len d fx fx bl
_ag
_bg ang len g ang len
h _a _b
h dd h
g g bl c
d fxglow g g bl c
g g fxg g
fx g bl core
fx g bl
_ag bl
bl
spark spark spark p
bead bead bead p
smokeg smoke
ozone ozone ozone ozone
d d d bl d p
d d dg d bl d p
d d d d d d d
fx p
fx
fx fx fx
bl
i i fx i
dm fxi dist dm dm
i c dist
k dist
dm dm dm k
dm_ddm k
p
_dend
_a_d d
h _a end width p
h dd h
h d lineSparkh _b lineSparkend lineSpark p