Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
import * as THREE from 'three';
import { ARENA, arenaSDF } from '../../vfx/common.js';
import { createStars, LOOP_PATH, LOOP_SHADE, BURST_GLSL, loopPoint } from './solar-flare.glsl.js';
// Solar Flare (SPELLBOOK, Light hero). References: SDO/AIA 171 and 304 movies of active-region
// flares and prominence eruptions, Hinode SOT granulation. A miniature sun ignites in front of a holy
// sigil at the focus: motes pour in, it swells, breathes in, and launches. In flight it is a
// ray-traced photosphere (boiling granulation, plage, filaments, spots, limb darkening) inside a
// spicule rim and a faint corona with heat haze; bundles of fine plasma strands arch off its limb,
// brighten and drain. It sheds a plasma wake and lights the floor and pillars as it passes.
// On impact the sun bursts and the flare erupts, as in the standard (CSHKP) flare picture:
// - the prominence lifts off: a twisted flux rope of red-orange strands, anchored at both ends
// of the polarity line, rises, swells and accelerates away as it fades
// - beneath it an arcade of post-flare loops forms along the line, one after another, each a
// bundle of fine strands: hot and white-gold along their length, then cooling, the light
_a _b _c _m _e _v
clamp sstep
x x
fx
gather
motes
spark
footSpark
plasma
ember
rain
coreCol glowCol loopCol lightCol hotCol promCol hue
coreHex glowHex
p coreHex p glowHex
coreHex p glowHex p
coreColp glowColp
loopColglowColcoreCol
lightColglowColcoreCol
hotColcoreCol
promColglowColcoreCol
glowCol
loopCol
stars fx
bursts
i i i
v fx
coreCol glowCol
v
burstsv
loops
fxloops
n
x z x2 z2 radius heat char glow
pattern seed width
fx
fxhue k
u st
st st
upos pos pos
up d p
u p p
u
ucoreCol
uglowCol
n c tp c n
n d d n
d tp tp tp
z fx az fx s z z
_ms az z s az
_vc fx
_m_v _v_m
a fx ca a sa a
_mca _m sa _m _m sa _m ca _m
_efx fx fx _m
_e _e _m
_e
ang fx
di_mang_e ang
di_mang_e ang
di c
di fx
di fx
a fx ca a sa a c
i i i
x c di di
x x c d i x
h di x x
vis x x heat x
di di
_aca sa sa ca
_bca sa sa ca
_c_a _b
sag _c
_c
s s s
hd di s
hd
hd _a _a _a
hd _b _b _b sag h
hd_c _c _c
hddi s heat
hdglowColhotCol heat
hd p p vis gate c s s
k k d k dk dk
d
d
k k n k
h loops
h
h dk h dk fx d k
k k
loops
p d c
d p dt
dc
ccc d d c d d
dt cc ddt
c d
d d d c d c
p d c
p
name
d p d d cc d fx
d d d d d d d d
d c
d
st stars st d st
d d dc d c p d
d fx
d d d d d dlightCol dc
cc c p c d
d fx
d d d
d d d
i i i di di
d
name
fx p
fx
sparkc spark d sparkc spark p
name
c p d
name
d d d d d
d d d
d
d d d d d
d d d d d d d
p d c d p
p
d
d dt c
d d d
c
k c c
d k k c k
c d
d k
d d c k p d
c d p k
gatherc gather k p dt
c k k
d d k d k
k k
c
c d
d c d p
d d c p d
c d p
plasmac plasma plasmac plasma p dt
sparkc spark sparkc spark p d dt
c d p
c
d
x c
d x d x
x d d
d dt
d c d c c p p c c d
dm fx
dist dm c dm c
dist p dm dm dist p
d dt
tt d lx c c c
d
d tt tt
d c tt p d
d d d d d
v d
v
tt v v d
fl p p fl tt
vc v
v tt tt c
vc
c d p tt lx dt
d
d dt
d p d
d d p p p p
lx
d fl p p
fl tt
flick c c c
tt lx flick
lx
motes motes fl motes motes p lx dt
ember ember fl ember ember p lx dt
dm fx dm dm fl dm dm lx
p fl p p pos c
pool
d pos pool pool pos pool pool
dpos d pool pos
d d
d
fx
fx
fx fx fx
dc c
d d
d dd d
d fl
d
k k d k dk k k
k k d k k dk k fx
d
d
v bursts v d v
d d d dpos d d dpos
sparkpos spark spark spark p
plasmapos plasma plasma plasma plasma p plasma
motes motes fl motes motes motes p motes
fl p
fx
pos fl p
fx
fl c
fl p c
fx _a fl p lightCol
fx fl glowCol
d fx
d d pos p d
d d fl d
r r r
h fx
dr h
h h h fl h h hlightCol
dm fx
dist dm pos dm pos reach fl
dist reach
dm dm dist reach
dmdist _adm pos c dist reach
px pos pool pool pool pool pz pos pool pool pool pool
px pos pz pos fxpx pz fxlightCol
fl tt
d d d
lean fx
j j j
u j
along u fl fl fx
w fl fx u sh fl u
dj along sh w
dj along sh w
dj lean fx fx
dj fl u fx
dj fl
dj j
d fl fl
d fl fl
d
d
fl p p fade lx p
xr tt
k k d k
h dk j dk sd dk
dj dj dj
j
hgt fl xr
h fl xr sd
h hgt
h fl xr
hsd
hpromColcoreCol sd sd
h sd sd p tt xr tt sd
x tt dj g x on x
heat x haze k
h haze sd fl
h dj g lx
h haze dj lx
hsd k k heat
hglowColhotCol heat sd sd
h haze sd sd p on fade x tt sd k
d d d w fl tt fl
r r r
lt dr sgn r
lt
lt sgn w
lt p tt lx tt r
d dt
d lx
d
r r r
sgn r u0 fx len fx
q0 sgn w fl fx q1 sgn w fl fx
_a u0 q0
_b u0 len q1
_a _a fx p lx c r d fx fl _b _b
lx
s s s
f d s j f
tt dj
footSparkf dj djd
footSpark
footSpark p lx dt
tt lx d
k fx d h dk
h tt ddk
h fx rain
rain
rain p lx dt