fire-smoke-skill-vfx
O que ela faz
Esta skill orienta o agente a criar os efeitos de fogo de uma skill de jogo, incluindo chamas, fumaça e chão em chamas. Ela serve para desenvolvedores de jogos que querem um fogo que pareça fogo, e não névoa laranja.
Quando usar
- ✓Quando uma skill de jogo precisa de chamas que pareçam fogo real.
- ✓Quando fumaça, brasas ou chão em chamas devem combinar com um efeito de fogo.
- ✓Quando efeitos de fogo parecem névoa laranja ou cones chapados e precisam de correção.
Link da skill
https://github.com/MengTo/Skills/blob/main/agent-skills/game-combat/fire-smoke-skill-vfx/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Faça a skill de fogo do meu jogo parecer chamas reais, com fumaça que sobe e brasas que se soltam.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
O agente cria volumes de chama com turbulência que se estica conforme sobe, uma rampa de cor do branco incandescente ao vermelho, e fumaça e brasas combinando. Ele mantém todos os efeitos em um estilo visual compartilhado.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do GitHub.
Fire and Smoke Skill VFX
Use this for the effect half of a fire skill: what the hand holds, what it throws, what burns and what the fire leaves. Reach for a sibling instead in these cases:
- Lightning, an energy orb, black afterimage smoke and air bursts:
lightning-energy-skill-vfx. This skill reuses its clock, composite, impact frames and flash limiter. - 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-polish.
Source: a brief for elemental skill pages built to the Black Lightning demo's bar, with the notes its owner gave on that demo ("not as in-your-face", "more fine lines", "smooth transitions", "a more realistic floor", "no sliding textures", "more detail in the smoke"). There is no character: the flame is held by an implied hand at chest height. Then two rounds of a dream loop against GPT Image edits of the page's own frames (see references/scorecard.md).
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 Burned 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 opens from disk.
The mechanism
Fire is a field that rises, cools and lights the world; smoke is what the fire lights.
- One flame shader, three shapes. Every flame is a ray march through a signed field: a profile (a plume from a source disc, a wall along an arc, a teardrop ball) minus the distance from its axis, pushed in and out by noise. Density is a narrow band of that field, so tongues have crisp edges and islands above the tips are detached licks.
- Buoyancy, not scrolling. The noise's height coordinate is
y0·ln(1 + h/y0)minus time, so features leave the root slowly and accelerate and stretch as they climb, and a slow warp drifting through the noise deforms them on the way. A scrolled texture (the Scrolled switch) slides over the flame. - Temperature drives everything. One temperature per sample picks the colour from a ramp, decides what hides the background (only hot gas does) and where soot absorbs (only a burst's cooling gas). The hottest gas along a ray shows through the cooler skin.
- Detail is band-limited to the buffer. Flames march into their own reduced-resolution target. Every octave fades out before it gets finer than a few pixels of that target at the sample's distance, and the target comes up with a smooth B-spline. Detail the buffer cannot hold aliases into a mosaic.
- One light set for everything. Eight firelights (one for flashes, seven claimed by flames and stage lights) light the ground, the smoke and the haze. They swell fast and settle slowly, so firelight breathes and never strobes.
- One clock and one composite, as in
lightning-energy-skill-vfx: holds freeze every layer at once, heat haze and pressure fronts write into one half-resolution distortion buffer, and the impact frame draws after tone mapping.
Reuse the working effect
Copy assets/fire-fx.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 { createFireFX, FIRE_LIGHTS_GLSL, GROUND_HEAT_GLSL, TNOISE_GLSL } from './fire-fx.mjs';
const fx = createFireFX(THREE, { renderer, scene, camera, seed: 23 }); // bakes the 96³ noise texture
fx.setSize(width * dpr, height * dpr, dpr); // drawing-buffer pixels, again on resize
fx.warmup(); // compile every effect before the first hit
fx.options.shake = 0.6; fx.options.fisheye = 0.65; // felt, not thrown at the viewer
// A flame held in the hand: a teardrop that grows in.
const held = fx.flame({ mode: 'ball', pos: hand, radius: 0.11, height: 0.44, temp: 1.06, light: 3.2,
embers: 0.9, smoke: 0.9, smokeKind: 'wisp', swirl: 3.5, spin: 2.2, ragged: 0.45 });
// A wall of fire rolling out: a fan of arc sectors you move with set().
const front = fx.flameArc({ center: origin, R: 0.7, w: 0.32, height: 0.6, a0:
Perguntas frequentes
Ela cobre o movimento do personagem?
Não. Cobre apenas os efeitos. O corpo e o tempo do conjurador são tratados por uma skill de combate separada.
Qual motor ela usa?
Three.js com WebGL2 e shaders personalizados.
Ela usa uma biblioteca de pós-processamento?
Não. A skill descreve um passe de brilho e composição escrito à mão.
Detalhes
Descrição original do autor
Build the effects of a fire skill as one visual language in Three.js. Flames that read as fire, not as orange fog or cones: ray-marched flame volumes whose turbulence rises with buoyancy (slow at the root, accelerating and stretching as it climbs) instead of scrolling, a temperature ramp from a white-hot core a little above the fuel through yellow and orange to deep red tips, broad brighter licks inside, walls of fire broken into clumps of separate tongues of very different heights with notches between them and licks that detach and go out, a fire whirl wound in helical sheets with a waist and
repo: MengTo/Skills
Popularidade
- Estrelas no GitHub
- 7,2 mil
- Posição no ranking
- #13345
- Licença
- MIT
- Atualizada em
- 01/11/2026
Comentários
- …
Mais skills deste repositório
3d-cloth-material
7,2 milAjuda seu agente a criar tecido tramado realista no Three.js, com trama de fios, brilho suave, dobras naturais, barras e costuras.
3d-falling-leaves
7,2 milAjuda seu agente a acrescentar folhas caindo realistas a uma cena 3D, com folhas que giram, são levadas pelo vento e reaproveitadas conforme a câmera se move.
3d-four-seasons
7,2 milAjuda seu agente a acrescentar visuais de primavera, verão, outono e inverno a uma cena 3D, alterando folhagem, luz, céu e neve sem reconstruir a cena.
3d-high-poly-models
7,2 milAjuda seu agente a criar modelos 3D detalhados com formas suaves e bordas convincentes, e depois preparar versões mais leves que rodem bem na web.
Skills parecidas
taste-application
280 milAjuda seu agente a criar vídeos com um estilo específico. Ele pode copiar o ritmo de edição de um vídeo de referência, gerar novas cenas, ajustar cores e editar tudo junto com outros vídeos.
taste-distillation
280 milFaz seu agente analisar vídeos para criar um pacote de estilo. Isso inclui cores, ritmo de corte e elementos visuais que podem ser reutilizados para criar novos vídeos com a mesma aparência.
ui-demo
280 milFaz seu agente gravar vídeos de demonstração de interface do usuário polidos. É útil para criar tutoriais ou mostrar como um aplicativo web funciona.