/summer:vfx-firefrom Summer Engine
Creates animated fire effects using GPUParticles3D, particle shaders, and noise-based color ramps. Useful for torches, campfires, braziers, and candle flames in Godot scenes.
Ships in Summer Engine. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fire in games is almost never a video clip and never an AI-generated sprite. It's a pile of additive billboard quads emitted from a cone, each running a noise-distorted UV through a hot color ramp (red → orange → yellow → smoky alpha-out). Think Skyrim torches, Doom Eternal's pyre, BotW's bonfires — all built from this same recipe with different dials. This skill writes the shader, the controller, and the node tree, then wires them into the open scene. Authoring, not generating.
vfx-muzzle-flash for the burst).vfx-dissolve. Fire is a separate effect; pair them.vfx-smoke. (Most fires want a smoke trail above; spawn this recipe and add vfx-smoke on top.)vfx-muzzle-flash, not fire.canvas_item shader; this recipe is spatial/particles.magic-fire variant in the cookbook below.addons/vfx/_building-blocks/noise-3d-fbm.gdshaderinc # copy from this skill FIRST
addons/vfx/fire/fire.gdshader # spatial shader for the visual quad
addons/vfx/fire/fire_process.gdshader # particle shader for the simulation
addons/vfx/fire/fire_controller.gd # parameter dials + lifetime
addons/vfx/fire/fire.tscn # reusable scene (instantiate per torch)
fire.gdshader #includes the FBM noise file. A missing include is a hard compile
error, so copy _building-blocks/noise-3d-fbm.gdshaderinc from this skill into
res://addons/vfx/_building-blocks/ before writing the shader.
addons/vfx/fire/fire.gdshader:
shader_type spatial;
render_mode unshaded, blend_add, depth_draw_never, cull_disabled, shadows_disabled;
#include "res://addons/vfx/_building-blocks/noise-3d-fbm.gdshaderinc"
uniform vec4 color_hot : source_color = vec4(1.0, 0.95, 0.55, 1.0);
uniform vec4 color_mid : source_color = vec4(1.0, 0.45, 0.10, 1.0);
uniform vec4 color_cool : source_color = vec4(0.85, 0.10, 0.02, 1.0);
uniform vec4 color_smoke : source_color = vec4(0.05, 0.04, 0.04, 0.0);
uniform float noise_scale : hint_range(0.5, 8.0) = 3.0;
uniform float noise_speed : hint_range(0.0, 4.0) = 1.4;
uniform float distortion : hint_range(0.0, 0.6) = 0.20;
uniform float emission_energy : hint_range(0.0, 8.0) = 3.5;
uniform float soft_edge : hint_range(0.01, 0.5) = 0.20;
// INSTANCE_CUSTOM is vertex-stage only, so carry what fragment() needs across.
varying float age;
varying float seed;
void vertex() {
// Billboard toward the camera, keeping per-particle rotation (INSTANCE_CUSTOM.x)
// and per-particle scale. The bare `VIEW_MATRIX * mat4(INV_VIEW_MATRIX[0..2],
// MODEL_MATRIX[3])` form throws both away — this mirrors what Godot's own
// BILLBOARD_PARTICLES generator emits (scene/resources/material.cpp:1313-1334).
mat4 mat_world = mat4(
normalize(INV_VIEW_MATRIX[0]),
normalize(INV_VIEW_MATRIX[1]),
normalize(INV_VIEW_MATRIX[2]),
MODEL_MATRIX[3]);
mat_world = mat_world * mat4(
vec4(cos(INSTANCE_CUSTOM.x), -sin(INSTANCE_CUSTOM.x), 0.0, 0.0),
vec4(sin(INSTANCE_CUSTOM.x), cos(INSTANCE_CUSTOM.x), 0.0, 0.0),
vec4(0.0, 0.0, 1.0, 0.0),
vec4(0.0, 0.0, 0.0, 1.0));
MODELVIEW_MATRIX = VIEW_MATRIX * mat_world * mat4(
vec4(length(MODEL_MATRIX[0].xyz), 0.0, 0.0, 0.0),
vec4(0.0, length(MODEL_MATRIX[1].xyz), 0.0, 0.0),
vec4(0.0, 0.0, length(MODEL_MATRIX[2].xyz), 0.0),
vec4(0.0, 0.0, 0.0, 1.0));
MODELVIEW_NORMAL_MATRIX = mat3(MODELVIEW_MATRIX);
// CUSTOM.x is the rotation angle, NOT the age. The age lives in CUSTOM.y
// (it counts up by DELTA/LIFETIME) and CUSTOM.w holds the lifetime scale.
age = clamp(INSTANCE_CUSTOM.y / max(INSTANCE_CUSTOM.w, 0.0001), 0.0, 1.0);
seed = fract(sin(float(INSTANCE_ID) * 12.9898) * 43758.5453);
}
void fragment() {
// Distort UVs with scrolling 3D noise so the flame writhes.
vec3 np = vec3(UV * noise_scale, TIME * noise_speed + seed * 10.0);
float n = fbm3(np);
vec2 uv = UV + vec2(n - 0.5) * distortion;
// Soft round mask, hottest at the bottom-center, cooler toward the top.
vec2 c = uv - vec2(0.5, 0.15);
float r = length(c * vec2(1.0, 0.55));
float mask = smoothstep(0.55, 0.55 - soft_edge, r);
// Color ramp by particle age (0 = hot bright, 1 = smoky alpha-out).
vec4 col;
if (age < 0.33) {
col = mix(color_hot, color_mid, age / 0.33);
} else if (age < 0.75) {
col = mix(color_mid, color_cool, (age - 0.33) / 0.42);
} else {
col = mix(color_cool, color_smoke, (age - 0.75) / 0.25);
}
// Add the noise as a brightness modulation so flames flicker.
float flicker = mix(0.6, 1.2, n);
// `render_mode unshaded` outputs ALBEDO and discards EMISSION entirely
// (scene_forward_clustered.glsl:2962 — `frag_color = vec4(albedo, alpha)`
// under MODE_UNSHADED), so the HDR boost that drives glow lives in ALBEDO.
ALBEDO = col.rgb * flicker * emission_energy * (1.0 - age * 0.5);
ALPHA = col.a * mask * (1.0 - age * age);
}
For most fires the built-in ParticleProcessMaterial is fine. Drop in this custom shader only if you need turbulence beyond the standard params:
addons/vfx/fire/fire_process.gdshader:
shader_type particles;
uniform float rise_speed : hint_range(0.1, 6.0) = 1.8;
uniform float spread_angle : hint_range(0.0, 1.5) = 0.35;
uniform float lifetime_var : hint_range(0.0, 1.0) = 0.25;
// `rand_from_seed()` is generated into ParticleProcessMaterial's own shader; it is
// NOT a built-in you can call from a hand-written particles shader
// ("SHADER ERROR: No matching function found for: 'rand_from_seed'"). Supply one.
uint hash_u(uint x) {
x ^= x >> 16u;
x *= 0x7feb352du;
x ^= x >> 15u;
x *= 0x846ca68bu;
x ^= x >> 16u;
return x;
}
float rnd(uint s) {
return float(hash_u(s) & 0x00ffffffu) / 16777216.0;
}
void start() {
uint s = RANDOM_SEED + INDEX * 747796405u;
// Random spawn within a small disc.
float r = sqrt(rnd(s + 7u)) * 0.18;
float th = rnd(s + 11u) * 6.2831853;
TRANSFORM[3].xyz = vec3(cos(th) * r, 0.0, sin(th) * r);
// Initial velocity: mostly up, slight cone.
vec3 dir = vec3(
(rnd(s + 13u) - 0.5) * spread_angle,
1.0,
(rnd(s + 17u) - 0.5) * spread_angle
);
VELOCITY = normalize(dir) * rise_speed;
// LIFETIME is read-only ("SHADER ERROR: Constants cannot be modified") and there
// is no TOTAL_LIFETIME. Stagger lifetimes the way ParticleProcessMaterial does:
// keep a per-particle lifetime scale in CUSTOM.w and retire the particle when
// the age in CUSTOM.y passes it.
CUSTOM = vec4(0.0);
CUSTOM.w = 1.0 + (rnd(s + 19u) - 0.5) * 2.0 * lifetime_var;
CUSTOM.z = rnd(s + 23u); // per-particle seed
}
void process() {
// CUSTOM.x = rotation angle, .y = age, .z = per-particle seed, .w = lifetime scale.
CUSTOM.y += DELTA / LIFETIME;
if (CUSTOM.y > CUSTOM.w) {
ACTIVE = false;
}
float age = clamp(CUSTOM.y / max(CUSTOM.w, 0.0001), 0.0, 1.0);
// Rise + small horizontal sway.
VELOCITY.y += DELTA * 0.6;
VELOCITY.x += sin(TIME * 2.0 + CUSTOM.z * 6.28) * DELTA * 0.4;
VELOCITY.z += cos(TIME * 2.3 + CUSTOM.z * 6.28) * DELTA * 0.4;
// Shrink as it ages.
float scale = mix(1.0, 0.35, age);
TRANSFORM[0].xyz = vec3(scale, 0.0, 0.0);
TRANSFORM[1].xyz = vec3(0.0, scale, 0.0);
TRANSFORM[2].xyz = vec3(0.0, 0.0, scale);
}
addons/vfx/fire/fire_controller.gd:
@tool
class_name FireController
extends GPUParticles3D
@export_group("Flame size")
@export_range(0.05, 5.0) var flame_height: float = 1.2 :
set(v): flame_height = v; _apply()
@export_range(0.05, 3.0) var flame_radius: float = 0.35 :
set(v): flame_radius = v; _apply()
@export_group("Flame intensity")
@export_range(8, 1024) var particle_count: int = 96 :
set(v): particle_count = v; _apply()
@export_range(0.2, 4.0) var flame_lifetime: float = 1.4 :
set(v): flame_lifetime = v; _apply()
@export_range(0.0, 8.0) var emission_energy: float = 3.5 :
set(v): emission_energy = v; _apply()
@export_group("Color")
@export var color_hot: Color = Color(1.0, 0.95, 0.55)
@export var color_mid: Color = Color(1.0, 0.45, 0.10)
@export var color_cool: Color = Color(0.85, 0.10, 0.02)
func _ready() -> void:
one_shot = false
explosiveness = 0.0
_apply()
func _apply() -> void:
amount = particle_count
lifetime = flame_lifetime
var pm := process_material as ParticleProcessMaterial
if pm:
pm.emission_shape = ParticleProcessMaterial.EMISSION_SHAPE_SPHERE
pm.emission_sphere_radius = flame_radius
pm.direction = Vector3.UP
pm.spread = 12.0
pm.initial_velocity_min = flame_height * 0.9
pm.initial_velocity_max = flame_height * 1.4
pm.gravity = Vector3.ZERO
pm.scale_min = flame_radius * 1.1
pm.scale_max = flame_radius * 1.6
if draw_pass_1:
var mesh := draw_pass_1 as QuadMesh
var mat := mesh.surface_get_material(0) as ShaderMaterial
if mat:
mat.set_shader_parameter("color_hot", color_hot)
mat.set_shader_parameter("color_mid", color_mid)
mat.set_shader_parameter("color_cool", color_cool)
mat.set_shader_parameter("emission_energy", emission_energy)
func extinguish(fade_seconds: float = 0.5) -> void:
var t := create_tween()
t.tween_property(self, "amount_ratio", 0.0, fade_seconds)
t.tween_callback(queue_free)
GPUParticles3D ("Fire") [script: fire_controller.gd]
├── process_material: ParticleProcessMaterial (or ShaderMaterial w/ fire_process.gdshader)
└── draw_pass_1: QuadMesh (size Vector2(1, 1))
└── material: ShaderMaterial (shader: fire.gdshader)
process_material and draw_pass_1 are resource properties on the one node, not
child nodes. surface_material_override belongs to MeshInstance3D and does not
apply here — a draw pass mesh carries its material in Mesh.material.
Add an OmniLight3D as a sibling (parented to the same anchor as the GPUParticles3D, NOT under it) for proper light cast. Recommended: light_color = Color(1.0, 0.6, 0.25), light_energy = 1.6, omni_range = 6.0. Pulse it lightly via the controller for free atmosphere.
Write the three files, then wire everything in ONE summer_run_script call with
an explicit scenePath — transactional (rollback on a mid-script error), no
.tres sidecar files needed because the script builds the resources directly:
summer_write_file(path="res://addons/vfx/_building-blocks/noise-3d-fbm.gdshaderinc", content="<from this skill>", create_only=true)
summer_write_file(path="res://addons/vfx/fire/fire.gdshader", content="<section 2>", create_only=true)
summer_write_file(path="res://addons/vfx/fire/fire_controller.gd", content="<section 4>", create_only=true)
summer_run_script(scenePath="res://main.tscn", source="""
func run(ctx):
var anchor = ctx.find("Torch")
var fire = ctx.add_node("GPUParticles3D", "Fire", anchor)
fire.set_script(load("res://addons/vfx/fire/fire_controller.gd"))
fire.process_material = ParticleProcessMaterial.new() # controller configures it on _ready
var quad := QuadMesh.new()
quad.size = Vector2(1, 1)
var mat := ShaderMaterial.new()
mat.shader = load("res://addons/vfx/fire/fire.gdshader")
quad.material = mat
fire.draw_pass_1 = quad
fire.set("flame_height", 1.2)
fire.set("flame_radius", 0.35)
fire.set("particle_count", 96)
ctx.add_node("OmniLight3D", "FireLight", anchor, {
"light_color": Color(1.0, 0.6, 0.25), "light_energy": 1.6, "omni_range": 6.0})
ctx.save_scene()
""")
ParticleProcessMaterial is a Material, not a Node: the script assigns it to
process_material, it is never a child. ctx.add_node sets owners for you. Take
a summer_world_snapshot before, and verify after with summer_snapshot_diff
(exactly Fire + FireLight added) plus a summer_screenshot — flames are
pixels, judge them as pixels.
Every file this recipe writes is compiled code. Check it before claiming the fire works.
summer_get_script_errors # fire_controller.gd parsed?
summer_play
summer_get_debugger_errors # shader compile errors surface here at runtime
summer_stop
A missing noise-3d-fbm.gdshaderinc and an un-copied shader both show up as compile
errors, not as an invisible flame. Read the errors before tuning any dial.
| Parameter | Range | Effect |
|---|---|---|
particle_count (amount) | 32–512 | density of the flame, perf cost is linear |
flame_lifetime | 0.5–3.0 s | how long each particle lives before fade |
flame_height | 0.2–4.0 | initial upward velocity → height of the column |
flame_radius | 0.05–2.0 | spawn disc + per-particle scale |
emission_energy | 0.0–8.0 | how much it blooms in the post-process |
noise_scale | 0.5–8.0 | small = wide flowing tongues; large = fine flicker |
noise_speed | 0.0–4.0 | how fast the flame moves |
distortion | 0.0–0.6 | how warped the silhouette gets |
color_hot/mid/cool | Color | the ramp; shift toward blue/green/purple for magic |
Wall-mounted torch, ~1 m flame.
particle_count = 64
flame_lifetime = 1.2
flame_height = 1.2
flame_radius = 0.20
emission_energy = 3.5
color_hot = Color(1.0, 0.95, 0.55)
color_mid = Color(1.0, 0.45, 0.10)
color_cool = Color(0.85, 0.10, 0.02)
OmniLight3D: light_energy = 1.6, omni_range = 6.0
Wide, tall, hungry. Pair with vfx-smoke directly above.
particle_count = 256
flame_lifetime = 1.8
flame_height = 2.4
flame_radius = 0.80
emission_energy = 4.5
OmniLight3D: light_energy = 3.5, omni_range = 12.0, pulse 1.0 Hz
Tiny, calm, mostly motionless. Lifetime small so it shimmers in place.
particle_count = 24
flame_lifetime = 0.6
flame_height = 0.18
flame_radius = 0.04
emission_energy = 2.0
noise_speed = 0.7
distortion = 0.10
OmniLight3D: light_energy = 0.6, omni_range = 2.5
Cool flame. Same dynamics, recolor the ramp.
particle_count = 96
flame_lifetime = 1.6
flame_height = 1.4
flame_radius = 0.30
emission_energy = 5.0
color_hot = Color(0.85, 0.95, 1.00)
color_mid = Color(0.20, 0.55, 1.00)
color_cool = Color(0.05, 0.10, 0.55)
OmniLight3D: light_color = Color(0.40, 0.65, 1.0), light_energy = 2.4
blend_add + unshaded and the flame looks like a flat orange triangle in shadow. Always: render_mode unshaded, blend_add, depth_draw_never;.one_shot = false for fire (continuous). One-shot is for vfx-muzzle-flash and vfx-hit-spark.cull_disabled. Particles billboard toward camera; if you cull backfaces, the flame disappears at certain angles.depth_draw_opaque on the visual material. You'll z-fight with anything inside the flame (the torch handle). Use depth_draw_never.INSTANCE_ID into a per-particle seed in vertex() and passes it to fragment() via a varying.CUSTOM in fragment(). In a spatial shader CUSTOM does not exist at all ("SHADER ERROR: Unknown identifier in expression: 'CUSTOM'"). The particle built-in is INSTANCE_CUSTOM, it is vertex-stage only, and INSTANCE_CUSTOM.x is the rotation angle — the age is in .y.VIEW_MATRIX * mat4(INV_VIEW_MATRIX[0..2], MODEL_MATRIX[3]). That form discards per-particle scale and rotation, so flame_radius's per-particle scale never reaches the screen. Use the full block in section 2.OmniLight3D shadow cast, and use a 64×64 noise texture instead of FBM if FPS dips._process, scale amount_ratio by clamp(1.0 - dist_to_camera / 30.0, 0.05, 1.0). Past 30 m, drop to a single billboard quad with the same shader (no particles).blend_add skips the depth write — good for perf, but means you can't sort fires against each other. Avoid stacking 5 flames at the same Z.flame_height to 0.4, noise_speed to 0.3, and tint everything blue-green via the color ramp.process_material doesn't know about wind. Either drive pm.gravity = Vector3(wind.x, 0.6, wind.z) from a script polling a wind vector, or use the fire_process.gdshader and pass a wind uniform.local_coords = true so particles emit in the torch's local space. Otherwise they trail behind as the NPC walks.Section 6 is fully automatable — summer_write_file writes the shaders and the
controller, summer_create_scene + summer_add_node + summer_set_prop +
summer_save_scene build and save fire.tscn. Do not hand these steps to the user
when the MCP tools are available.
Without the MCP connection there is no engine to drive, so the user does it manually in Summer Engine:
addons/vfx/_building-blocks/ and addons/vfx/fire/ with the contents above.GPUParticles3D node, attach fire_controller.gd.process_material to a new ParticleProcessMaterial (the script configures it on _ready).draw_pass_1 to a new QuadMesh (size 1×1), with the mesh's material set to a ShaderMaterial whose shader is fire.gdshader.fire.tscn and instantiate at every torch / brazier..gdshaderinc fails the whole shader.After firing this recipe, suggest neighbors:
vfx-smoke — every fire that lasts > 5 s wants smoke rising above. Spawn 0.5 m above the flame top.vfx-dissolve — if the user wants the fuel (logs, body, paper) to gradually disappear as it burns.vfx-magic-glow — for an OmniLight3D with proper sin-wave pulsing if the default is too constant.game-feel — for a slight camera flicker / thermal heat-haze post-process near very large fires.sound-effect — generate fire crackle, dry wood, soft pops, 2s loop and wire to an AudioStreamPlayer3D on the same anchor._building-blocks/noise-3d-fbm.gdshaderinc — the FBM noise this shader includes_building-blocks/additive-billboard-particles.md — canonical additive material settingsvfx-smoke — sister recipe for the column rising abovevfx-dissolve — for objects burning awayvfx-magic-glow — for the light source pulsinggame-feel — non-particle game-feel pairingsgdscript-patterns — for the controller's idioms (signals, exports, @tool)No Summer MCP tools in this session? Run each one as a command; when summer --version is missing or below 4.0, use npx -y summer-engine@latest in place of summer. Fields are flags in kebab-case (--scene-path res://main.tscn) or one --input '<json>', and summer ops describe <op> prints the exact input. The summer-cli skill has the rest.
| In this skill | Command |
|---|---|
summer_add_node | summer engine add-node |
summer_create_scene | summer engine create-scene |
summer_get_debugger_errors | summer engine get-debugger-errors |
summer_get_script_errors | summer engine get-script-errors |
summer_inspect_node | summer engine inspect-node |
summer_inspect_resource | summer engine inspect-resource |
summer_play | summer engine play |
summer_read_file | summer engine read-file |
summer_run_script | summer engine run-script |
summer_save_scene | summer engine save-scene |
summer_screenshot | summer engine screenshot |
summer_set_prop | summer engine set-prop |
summer_set_resource_property | summer engine set-resource-property |
summer_snapshot_diff | summer engine snapshot-diff |
summer_stop | summer engine stop |
summer_world_snapshot | summer engine world-snapshot |
summer_write_file | summer engine write-file |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub summerengine/summer --plugin summer123 skills in this plugin
/3d-lightingLight a 3D scene: sun, omni and spot lights, WorldEnvironment, sky, shadows and ambient./adaptive-musicWire music stems to game state: combat, explore, boss and tension crossfades on a shared bus./agent-playtestingPlaytest by driving the live game: deterministic launch, frame-stamped probes, scripted or recorded input./ambient-bedGenerate a long looping location ambience (forest, dungeon, city, cave) on the Ambient bus./animated-loopGenerate a short seamless video loop: splash background, animated logo backdrop, idle title screen./animation-treeWire AnimationTree state machines and blend trees: locomotion blends, attack interrupts, hit reactions.Other plugins' skills for the same job