/summer:vfx-smokefrom Summer Engine
Creates a soft particle smoke plume effect in Godot 4 using billboard quads, noise shaders, and density falloff. Use for chimney smoke, steam vents, fog clouds, or smoke trails behind rockets.
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.
Smoke is the same particle pattern as fire — billboard quads emitted from a small disc, drifting upward — except the shader is dim, soft, low-emission, and tinted by depth instead of glowing. Slower spawn rate, longer lifetime, larger end scale. Pair it with vfx-fire for any campfire/torch/explosion. Used everywhere: chimney smoke, smoldering wreckage, smoke trails behind rockets, steam from vents, fog clouds.
vfx-fire, smoke almost always belongs above it.vfx-fire.FogVolume node with volumetric fog enabled in the WorldEnvironment, not a particle system. Particles don't scale to room-size fog.canvas_item shader, not this.FogVolume + script that follows the player.FogVolume for genuine visual occlusion.addons/vfx/_building-blocks/noise-3d-fbm.gdshaderinc # copy from this skill FIRST
addons/vfx/smoke/smoke.gdshader
addons/vfx/smoke/smoke_controller.gd
addons/vfx/smoke/smoke.tscn
smoke.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/smoke/smoke.gdshader:
shader_type spatial;
render_mode unshaded, blend_mix, depth_draw_never, cull_disabled, shadows_disabled;
#include "res://addons/vfx/_building-blocks/noise-3d-fbm.gdshaderinc"
uniform vec4 smoke_color_young : source_color = vec4(0.85, 0.85, 0.85, 1.0); // freshly emitted
uniform vec4 smoke_color_old : source_color = vec4(0.45, 0.45, 0.45, 1.0); // late life
uniform float density : hint_range(0.0, 1.0) = 0.55;
uniform float noise_scale : hint_range(0.5, 8.0) = 2.0;
uniform float noise_speed : hint_range(0.0, 2.0) = 0.5;
uniform float soft_edge : hint_range(0.01, 0.5) = 0.30;
uniform float depth_fade : hint_range(0.0, 4.0) = 1.0; // soft against geometry behind
// 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 slow noise.
vec3 np = vec3(UV * noise_scale, TIME * noise_speed + seed * 10.0);
float n = fbm3(np);
// Soft round mask, modulated by noise so the silhouette is wispy not circular.
vec2 c = UV - vec2(0.5);
float r = length(c) * 2.0;
float mask = smoothstep(1.0, 1.0 - soft_edge, r);
mask *= (0.6 + 0.4 * n); // bite chunks out of the puff
// Fade in fast, fade out slow.
float alpha_age = smoothstep(0.0, 0.15, age) * (1.0 - smoothstep(0.6, 1.0, age));
// Color drifts young → old as it ages (cools off / dilutes).
vec3 col = mix(smoke_color_young.rgb, smoke_color_old.rgb, age);
ALBEDO = col;
ALPHA = mask * alpha_age * density;
}
Note: for soft-particle depth fade against geometry behind the puff, the proper way is sampling DEPTH_TEXTURE; for clarity we keep the shader straightforward and rely on depth_draw_never + alpha for soft-look. If you need true soft-particle blending, add a DEPTH_TEXTURE sample in fragment — see Edge Cases.
addons/vfx/smoke/smoke_controller.gd:
@tool
class_name SmokeController
extends GPUParticles3D
@export_group("Plume size")
@export_range(0.1, 8.0) var rise_height: float = 3.0 :
set(v): rise_height = v; _apply()
@export_range(0.05, 3.0) var spawn_radius: float = 0.20 :
set(v): spawn_radius = v; _apply()
@export_range(0.5, 4.0) var end_scale_multiplier: float = 2.5 :
set(v): end_scale_multiplier = v; _apply()
@export_group("Plume intensity")
@export_range(8, 512) var particle_count: int = 64 :
set(v): particle_count = v; _apply()
@export_range(1.0, 8.0) var puff_lifetime: float = 4.0 :
set(v): puff_lifetime = v; _apply()
@export_range(0.0, 1.0) var density: float = 0.55
@export_group("Wind")
@export var wind_direction: Vector3 = Vector3(0.3, 0.0, 0.0) :
set(v): wind_direction = v; _apply()
@export_range(0.0, 5.0) var wind_strength: float = 0.4 :
set(v): wind_strength = v; _apply()
@export_group("Color")
@export var color_young: Color = Color(0.85, 0.85, 0.85)
@export var color_old: Color = Color(0.45, 0.45, 0.45)
func _ready() -> void:
one_shot = false
explosiveness = 0.0
_apply()
func _apply() -> void:
amount = particle_count
lifetime = puff_lifetime
var pm := process_material as ParticleProcessMaterial
if pm:
pm.emission_shape = ParticleProcessMaterial.EMISSION_SHAPE_SPHERE
pm.emission_sphere_radius = spawn_radius
pm.direction = Vector3.UP
pm.spread = 8.0
pm.initial_velocity_min = rise_height / puff_lifetime * 0.7
pm.initial_velocity_max = rise_height / puff_lifetime * 1.2
pm.gravity = wind_direction.normalized() * wind_strength
pm.scale_min = spawn_radius * 1.2
pm.scale_max = spawn_radius * 1.8
pm.scale_curve = _make_scale_curve(end_scale_multiplier)
pm.angular_velocity_min = -25.0
pm.angular_velocity_max = 25.0
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("smoke_color_young", color_young)
mat.set_shader_parameter("smoke_color_old", color_old)
mat.set_shader_parameter("density", density)
func _make_scale_curve(end_mult: float) -> CurveTexture:
var c := Curve.new()
# Curve clamps every sample to max_value, which defaults to 1.0. Without this
# line every end multiplier above 1.0 is silently flattened back to 1.0 and the
# whole cookbook's growth numbers do nothing.
c.max_value = maxf(1.0, end_mult)
c.add_point(Vector2(0.0, 0.4))
c.add_point(Vector2(0.3, 1.0))
c.add_point(Vector2(1.0, end_mult))
var ct := CurveTexture.new()
ct.curve = c
return ct
func puff(amount_scalar: float = 1.0) -> void:
# One-shot burst on top of the continuous emission (e.g., chimney puffs from a sneeze).
var saved := amount_ratio
amount_ratio = amount_scalar
restart()
var t := create_tween()
t.tween_interval(0.1)
t.tween_callback(func() -> void: amount_ratio = saved)
func stop_smoke(fade_seconds: float = 1.5) -> void:
var t := create_tween()
t.tween_property(self, "amount_ratio", 0.0, fade_seconds)
GPUParticles3D ("Smoke") [script: smoke_controller.gd]
├── process_material: ParticleProcessMaterial
└── draw_pass_1: QuadMesh (size Vector2(1, 1))
└── material: ShaderMaterial (shader: smoke.gdshader)
process_material and draw_pass_1 are resource properties on the one node, not
child nodes, and ParticleProcessMaterial is a Material — you cannot
summer_add_node it.
Write the three files, then wire the emitter with ONE summer_run_script call
with an explicit scenePath — transactional, and it builds the QuadMesh +
ShaderMaterial resources directly instead of .tres sidecars. For chimney
smoke, parent the Smoke just above the heat source:
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/smoke/smoke.gdshader", content="<section 2>", create_only=true)
summer_write_file(path="res://addons/vfx/smoke/smoke_controller.gd", content="<section 3>", create_only=true)
summer_run_script(scenePath="res://main.tscn", source="""
func run(ctx):
var smoke = ctx.add_node("GPUParticles3D", "Smoke", ctx.find("Chimney"))
smoke.set_script(load("res://addons/vfx/smoke/smoke_controller.gd"))
smoke.process_material = ParticleProcessMaterial.new()
var quad := QuadMesh.new()
quad.size = Vector2(1, 1)
var mat := ShaderMaterial.new()
mat.shader = load("res://addons/vfx/smoke/smoke.gdshader")
quad.material = mat
smoke.draw_pass_1 = quad
smoke.position = Vector3(0, 0.3, 0)
smoke.set("rise_height", 4.0)
smoke.set("particle_count", 48)
smoke.set("wind_direction", Vector3(0.4, 0, 0.1))
ctx.save_scene()
""")
For pairing with a fire, run the same script with ctx.find("Campfire") as the
parent, position = Vector3(0, 1.5, 0) (above the flame top) and
rise_height 3.0.
Verify with summer_snapshot_diff (exactly one node added) and a summer_screenshot.
The shader and the controller are compiled code. Check them before tuning anything.
summer_get_script_errors # smoke_controller.gd parsed?
summer_play
summer_get_debugger_errors # shader compile errors surface here at runtime
summer_stop
For a rocket trail (smoke follows the rocket):
# On the Rocket scene:
$Smoke.local_coords = false # smoke stays in world space, rocket leaves it behind
| Parameter | Range | Effect |
|---|---|---|
particle_count (amount) | 16–256 | density of the column |
puff_lifetime | 1.0–8.0 s | how long each puff is visible (longer = taller column) |
rise_height | 0.1–8.0 m | how far each puff travels upward |
spawn_radius | 0.05–3.0 m | spawn disc + initial puff size |
end_scale_multiplier | 0.5–4.0× | how much each puff grows over its life |
density | 0.0–1.0 | overall opacity of every puff |
wind_direction | Vector3 | drift direction (also bends the column) |
wind_strength | 0.0–5.0 | horizontal drift speed |
color_young / color_old | Color | tint at birth and at death |
Light gray, gentle, drifts on a slight wind.
particle_count = 48
puff_lifetime = 4.0
rise_height = 4.0
spawn_radius = 0.30
end_scale_multiplier = 2.5
density = 0.55
wind_direction = Vector3(0.3, 0.0, 0.1)
wind_strength = 0.4
color_young = Color(0.85, 0.85, 0.85)
color_old = Color(0.55, 0.55, 0.55)
Burning oil / tires. Pair with vfx-fire set to bonfire.
particle_count = 96
puff_lifetime = 5.0
rise_height = 5.0
spawn_radius = 0.60
end_scale_multiplier = 3.0
density = 0.85
color_young = Color(0.20, 0.18, 0.16)
color_old = Color(0.05, 0.05, 0.05)
White, fast-rising, short-lived.
particle_count = 64
puff_lifetime = 1.6
rise_height = 2.5
spawn_radius = 0.10
end_scale_multiplier = 2.0
density = 0.45
wind_strength = 0.0
color_young = Color(1.0, 1.0, 1.0)
color_old = Color(0.95, 0.95, 1.0)
Long-lived, narrow spawn, follows the rocket.
particle_count = 128
puff_lifetime = 3.0
rise_height = 0.5 # local Y; the rocket's velocity drives it
spawn_radius = 0.08
end_scale_multiplier = 4.0
density = 0.50
local_coords = false # set on the node
color_young = Color(0.95, 0.95, 0.95)
color_old = Color(0.40, 0.40, 0.40)
Slow, wide, ground-hugging. (For very large fog, use FogVolume instead.)
particle_count = 128
puff_lifetime = 8.0
rise_height = 0.3
spawn_radius = 3.0
end_scale_multiplier = 1.5
density = 0.30
gravity = Vector3(0, -0.05, 0) # slightly drift downward
color_young = Color(0.75, 0.78, 0.85)
color_old = Color(0.65, 0.68, 0.75)
blend_add like fire. Smoke is blend_mix (alpha-blended). Additive smoke looks like glowing dust.cull_disabled. Billboarded quads disappear at certain camera angles otherwise.puff_lifetime < 1.0. Smoke needs time to spread out and dilute. Short-lifetime smoke looks like spray._make_scale_curve ramps from 0.4× → 1.0× → end_mult.Curve.max_value. Curve defaults to max_value = 1.0 and silently clamps, so every end_scale_multiplier above 1.0 is inert and the smoke never grows. Set c.max_value before adding the points.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.emission_energy > 0 on the shader's quad material. Smoke isn't bright. Keep unshaded and let ALBEDO carry the look. (The shader as written has no EMISSION line — correct.)local_coords = false so puffs stay where they were emitted.INSTANCE_CUSTOM.x rotation, which is why section 2 uses the full block rather than the bare VIEW_MATRIX * mat4(INV_VIEW_MATRIX[0..2], MODEL_MATRIX[3]) form.density at high count (128 particles, density 0.85) gets fillrate-bound — overdraw on a screen full of smoke. Budget ~256 smoke particles total visible at once.puff_lifetime to 2.5, drop density to 0.35.amount_ratio by clamp(1.5 - dist_to_camera / 40.0, 0.10, 1.0) for distant chimneys.uniform sampler2D depth_tex : hint_depth_texture;
// in fragment, after the mask line:
float scene_d = texture(depth_tex, SCREEN_UV).r;
vec4 wpos = INV_PROJECTION_MATRIX * vec4(SCREEN_UV * 2.0 - 1.0, scene_d * 2.0 - 1.0, 1.0);
wpos.xyz /= wpos.w;
float d = abs(VERTEX.z - wpos.z);
ALPHA *= clamp(d * depth_fade, 0.0, 1.0);
wind_direction from a global wind script polled in _process.puff() API, set one_shot = true, increase amount to 256 for the burst, then free the node after puff_lifetime.unshaded, smoke is the same brightness day or night — looks bright at night. Either change to shading_mode lit and accept lighting cost, or tween density down with sun angle.wind_strength to 0, gravity to slight upward, color tan: Color(0.55, 0.50, 0.40).Section 5 is fully automatable — summer_write_file writes the shader and the
controller, summer_create_scene + summer_add_node + summer_set_prop +
summer_save_scene build and save smoke.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/smoke/ with the files above.GPUParticles3D, attach smoke_controller.gd.process_material to a new ParticleProcessMaterial (script configures it).draw_pass_1 to a new QuadMesh with its material = ShaderMaterial(smoke.gdshader).smoke.tscn; instantiate at every smoke source..gdshaderinc fails the whole shader.After firing this recipe, suggest:
vfx-fire — the partner; almost any fire wants smoke 0.5–2 m above the flame top.vfx-dissolve — pair black-fire-smoke with a dissolving target for "the bandit camp burns and ashes drift away."vfx-lightning — for a smoke flash from a lightning strike (use puff() on impact).sound-effect — generate gentle wind through smoke, soft hiss, 4s loop for chimneys._building-blocks/noise-3d-fbm.gdshaderinc — the FBM noise this shader includesvfx-fire — sister recipe, almost always pairedvfx-dissolve — for ash particles after disintegrationgdscript-patterns — for the controller 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
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