lightning-energy-skill-vfx
Was er macht
Dieser Skill führt den Agenten beim Bau von Blitzen, Energiekugeln und zugehörigen Einschlagseffekten für einen Spiel-Skill. Er richtet sich an Spieleentwickler, die dynamische, fein gezeichnete elektrische Effekte wollen, die den Bildschirm nicht überladen.
Wann du ihn nutzt
- ✓Wenn ein Spiel-Skill Blitze braucht, die sich verzweigen und aufblitzen.
- ✓Wenn eine Energiekugel oder ein Sturm vor der Faust einer Figur schweben soll.
- ✓Wenn um denselben Skill Einschlagsbilder, Luftstöße oder Nachbild-Rauch gebraucht werden.
Link zum Skill
https://github.com/MengTo/Skills/blob/main/agent-skills/game-combat/lightning-energy-skill-vfx/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Füge meinem Faust-Skill eine Blitz-Energiekugel hinzu, mit verzweigten Blitzen, die beim Treffer aufblitzen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent baut die Blitze als verzweigte Streifen mit hellem Kern und violettem Glühen, stimmt die Einschläge auf eine gemeinsame Effektuhr ab und ergänzt einen Kompositionsdurchlauf. Die Blitze begrenzt er, damit der Bildschirm lesbar bleibt.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Lightning Energy Skill VFX
Use this for the effect half of a skill: what the fist throws, what the air does, what the hit leaves. Reach for a sibling instead in these cases:
- Readable, budgeted gameplay effects in general (telegraphs, status, cleanup rules):
create-game-vfx. Its readability rules still apply here. - Scoring a skill out of 10, or polishing the caster's body and timing:
game-dev-combat-skill-polishandgame-dev-combat-animation.
Source: a 30-second skill-showcase brief for a dark-fantasy ability user. White-blue lightning, a semi-transparent thunderstorm orb ahead of the fist, black smoke afterimages like a shattered cloak, air bursts, orange sparks and impact frames. Only the effect language is kept here. The character, story and shot list are left out.
Verified stack: Three.js r170, WebGL2, GLSL ShaderMaterials, HalfFloat render targets, a 96³ baked noise texture, and a hand-written bloom and composite. No post-processing library. The demo's floor is Poly Haven's Dry Ground 01 by Rob Tuytel (CC0), its 1k colour, normal and AO/roughness maps in demo/assets/ground/, embedded by demo/build.mjs as data URIs so the page still opens from disk.
The mechanism
One effect clock, one composite, and a shadow that belongs to the orb.
- One clock. Lightning re-rolls on it, a hit freezes it (a hold), and a time ramp slows it. A 0.1 s hold therefore stops sparks, smoke, rings and lightning together.
- One composite. Every layer that bends the air writes a signed screen offset into one shared distortion buffer. The composite reads colour through that offset, adds bloom and tone maps once. Only then does it draw the impact frame on top, so a negative flash inverts the finished image rather than one layer.
- The orb carries its own shadow. A black teardrop is drawn behind the orb, and ribbons and billows leave from the orb's back. Wherever the fist goes, the black follows it; nothing is emitted from a body you cannot see.
- Lightning is a tree of strips in one point ring. A bolt is a trunk, its forks, their forks and twigs. All their points live in one ring buffer and the GPU buffers are sized by a point budget, so thousands of twigs fit. Points of bolts anchored to the orb are stored relative to it and the anchor is a uniform, so the buffers change only when the lightning re-rolls (30 Hz), not every frame the orb moves.
- Lightning has a life, drawn in the shader. Every vertex carries when the leader reaches it, so a channel grows out from its origin (forks from their junctions) in 30–90 ms on the lightning's own clock, flares as the return stroke connects, holds its shape for a few ticks, and fades through an afterglow. The ground flashes when the leader arrives.
Reuse the working effect
Copy assets/storm-energy.mjs. You pass in your own THREE, and the module does not import a second copy. The demo runs this same module, inlined by demo/build.mjs because a page opened from disk cannot import modules.
import { createStormEnergy, ENERGY_LIGHTS_GLSL, GROUND_HEAT_GLSL } from './storm-energy.mjs';
const fx = createStormEnergy(THREE, { renderer, scene, camera }); // bakes the noise texture
fx.setSize(width * dpr, height * dpr, dpr); // drawing-buffer pixels, again on resize
fx.warmup(); // compile every effect before the first hit
const orb = fx.createOrb({ radius: 0.4 }); // shadow: true by default (teardrop, ribbons, billows, motes)
orb.reach = [shoulder, elbow, head]; // Vector3s the arcs can leap back to
orb.strikeAt = groundSpot; // optional: aim its ground strikes; orb.strikes = false stops them
// Optional: let ground arcs follow your ground's cracks. Return [x,y,z,...] walking from (x, z).
fx.options.crackPath = (x, z, heading, length) => traceAlongCracks(x, z, heading, length);
// Ground and props: add ENERGY_LIGHTS_GLSL (+ GROUND_HEAT_GLSL, WET_GLSL), spread fx.lightUniforms
// (+ fx.heatUniforms) into their uniforms, and add energyLight(...) and
// uGlow * groundHeat(p.xz) * yourCrackMask to their colour. Use wetness(p.xz) for the ground's
// roughness: the bolts' reflections are masked by the same function.
function frame(realDt) {
const dt = fx.update(realDt); // sim seconds: 0 during a hold, scaled by ramps
// move the fist with dt, then:
Häufige Fragen
Werden die Effekte zu hell?
Der Skill strebt dynamische Effekte an, die nicht aufdringlich sind, und begrenzt, wie oft der Bildschirm aufblitzt.
Enthält er Rauch oder Funken?
Ja. Er deckt schwarze Rauch-Nachbilder und orangefarbene Funken aus demselben Skill ab.
Welche Engine nutzt er?
Three.js mit WebGL2 und eigenen Shadern.
Details
Originalbeschreibung des Autors
Build the effects of a close-combat energy skill as one visual language in Three.js. Lightning that reads as lightning, dynamic but never in your face: trees of strips (trunk, forks of forks, hair-fine branchlets) with a fine white core in a violet-blue glow, each channel reaching out as a stepped leader, flaring as it connects, holding its shape and fading through an afterglow, one discharge at a time; a storm-cloud orb (a lit billow surface that churns in place, 10-15 plasma-globe arcs from a small white core to its inner wall, crawlers on the rim, a hairline fresnel); ground strikes that fl
repo: MengTo/Skills
Beliebtheit
- GitHub-Sterne
- 7.2k
- Platz im Ranking
- #13349
- Lizenz
- MIT
- Aktualisiert
- 1.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
3d-cloth-material
7.2kHilft deinem Agenten, realistisch gewebten Stoff in Three.js zu bauen, mit Fadengewebe, weichem Schimmer, natürlichen Falten, Säumen und Nähten.
3d-falling-leaves
7.2kHilft deinem Agenten, realistisch fallende Blätter in eine 3D-Szene einzubauen, die taumeln, vom Wind treiben und sich wiederverwenden, wenn sich die Kamera bewegt.
3d-four-seasons
7.2kHilft deinem Agenten, Frühling, Sommer, Herbst und Winter in eine 3D-Szene einzubauen. Laub, Licht, Himmel und Schnee wechseln, ohne die Szene neu zu bauen.
3d-high-poly-models
7.2kHilft deinem Agenten, detaillierte 3D-Modelle mit glatten Formen und glaubwürdigen Kanten zu bauen und danach leichtere Versionen vorzubereiten, die im Web gut laufen.
Ähnliche Skills
taste-application
280kHilft deinem Agenten, Videos im Stil eines Referenzvideos zu erstellen. Er übernimmt den Schnittrhythmus, generiert Szenen, passt Farben an und schneidet alles zusammen.
taste-distillation
280kLässt deinen Agenten Videos analysieren und ein Stil-Paket erstellen. Es enthält Farben, Schnittrhythmus und visuelle Elemente für neue Videos im gleichen Look.
ui-demo
280kLässt deinen Agenten ansprechende UI-Demo-Videos aufnehmen. Nützlich für Tutorials oder um zu zeigen, wie eine Web-App funktioniert.