Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
import * as THREE from 'three';
import { blackbodyRGB } from '../../vfx/noise.js';
import { BIRD_PATH, BIRD_SHADE, FEATHER_PATH, FEATHER_SHADE } from './phoenix.glsl.js';
// Phoenix (SPELLBOOK, Fire hero). Anticipation: embers spiral into the focus where a firebird forms
// with its wings wrapped round it. Release: the wings snap open and it launches up and out on an
// arcing Bezier, beating hard; it glides wide-winged over the apex and stoops into the target with
// its wings raised in a V. The bird is ~29 analytic ribbons per layer posed from 5 uniforms per bird
// (half-res flame glow with heat haze + full-res cores), with media flames shed off the trailing
// edges, wingtip wisps, a hot path trail and burning feathers that peel off and flutter down.
// Impact: the bird bursts apart into a storm of burning feathers (stateless ribbons that tumble,
// settle and burn from the tip down), a flame blast, sparks, a pressure shell that shoves loose
// particles, a shock ring, and its spread-wing silhouette scorched into the floor (hot enough to
// grow ground flames). Aftermath: smoke, light dying with the flames, and the ashes stir: a spiral
// of embers rises from the centre.
const
ss
k k k
s k
s s s s
side
side side
k k k side k k k k k side k
k k k
s k
side s s s k side
i i i
o i
o o o i i
i i i i i i i
x
out s k s s s s s
dx p dz p c beta s beta
p dx c dz s p dx s dz c
p
dx p se dx x ph se lag
th dih se amp x x se
c th s th y p
p dx c y s p dx s y c
p
t x a b a t t t
fx
flameMass
pos k p k
p k dt
pos p p
a b
vel p rate dt
pos p p p p
hot mid cool
shared
hot mid cool
birdFx shared
birdLn shared
featFx shared
featLn shared
fxbirdFx featFx
fxbirdLn featLn
feathers
state
slotOwner
_a _b _c _q _R
_up _dF _v
col tintCol
lastT lastTint
a b
p
p lastT p lastTint
lastT p lastTint p
tintColp
p
hottintCol
midtintCol
cooltintCol
white tintCol tintCol tintCol
h
white h h h h h h
h htintCol
h htintColh h
h h
outtintCol
i st
i
ist st st st
ist st st st
ist st st st
ist st st
ist st
st
r r r
str str r
str str
st slotOwner
st
slotOwnerst ci
r r r
str birdFx r st
str birdLn r st
h
p1
h slot
hp1 p1 p1 p1
h
h
h
r r r str str str str
st slotOwnerst st
st
_Rst st
outst_R q stst q stst q st
s k k st an k st t
s st _q
_q an t _q t t _q an t
_q st st t st st st
_q side
st _q out
_qst t t t st t t t
st _q out
f
i i f i feathersi feathersi f feathersi
f
f featFx f featLn
f fx f life f owner
seed fx fall fx spin fx drag fx
f f pos vel len width heat seed fall spin drag
f f pos vel len width heat seed fall spin drag
h
hpos pos pos f
hvel vel vel f
hfall spin drag
hlen width seed heat
h gain
f f f f f
x z radius heat char pattern
seed x2 z2 width
fx
u s
outstu u ust u u sst u s sst s s s
u s
outst st u u
out_cst st u s
out_cst st s s
_dFst
st st_ast dt
_b_upst st
_b _bstst stst
_b
_R_b st
roll st_R
_broll_R roll
st_b dt rate
stst stst
dt
_dFst _dFdt
_Rst st
k dt
st _dF_R st k
st _dFst st k
k c c f c
a c
f_aa a a k
f _aa a
p dt
flameMassf k p dt
stf_up k
st st_up
st_upst _upst
st p k
st k st st st k st dt
st k
st
st
f k p
s st
st dt
climb s hook s s strike s
open st
st open st strike
st hook strike
st open hook strike
st p climb climb hook strike hook open strike
st dt climb climb hook p
st
st p
st dt
st
fr p
side side side
st side st side
st fr dt
st side
st p dt
st
p st p dt
flameMassst _q _b st _q _c st p fr dt
st dt p
st
st
side fx k fx
st side k _b
_vst_afx fx fx
c _b _v fx p p
stst
st
st p c
pos c x pos z pos
flameMasspos p
pos p
pos p p
pospos p p p p
x z p p
n p
i i n i
a fx y fx
_va y y y a y y fx p
_vst
c _bpos_v _v fx fx p fx p fx
st fx
st st stpos st st st p st
x z p p
fx
pos p p
fx
sc p p fwd st rx fwd rz fwd
x z sc c
side side side
i i i
ang i len i sc
ax rx side ang fwd ang az rz side ang fwd ang
x ax sc z az sc sc c i side x ax len z az len i sc
x fwd z fwd sc c x fwd sc z fwd sc sc
fx pos p p col
st st p st p stpospos
fx p
fx
fx fx fx
dm fx
d dm x dm z p
d dm dm d dm_adm posfwd d
pool fx
qx x pool pool qz z pool pool
qx qz fx
fxx pool pool pool pool z pool pool pool pool
fxp col
st
st st
st st
st st
f feathers f ci f
k k
now fx
f feathers f f now f f f
birdFx birdLn featFx featLn
p st statec
name
st c
st st st st st st st st
st st
cc
_ac c
_a _a
_a
st_a
_R_a _up
sw p up p
stc
stc_up up_R sw_a
stc_up up_R sw_a
r2 st st lim fx
r2 lim st lim r2 st lim r2
stc
stc
st c
st fx
st st st st p st
name
fx
flameMassc p
c p
st fx
t st
t t p t p t t t t t p p t
name
st st
st
c st p
name
st
name st c
p st statec
ds st st _b
v p st st c st
st st v dt ds
_ast
st st st
_vst _adt
dt st_c_v stdt dt
st_v
cst cst
st c c
p st statec
c c st p dt
c c st p dt
st dt
a st st
c st
k a c g k k
st p g
st st g g st g st
st_up dt k
st k k k
st
sh st
sh
a sh st
sh p a sh p a
dt
c p c c c
c
t c
t
cc p t p p p dt
t t
k t t ang t r p t
c ang r t c ang r
ang ang
p k dt
c c p p k dt