/xenodot:godot-pixel-lightingfrom xenodot
Configures pixel-readability-first lighting for Godot 3D pixel-art blockout: hard shadows, Filmic tonemap, fixed exposure. Use when lighting levels or fixing shadow/readability issues.
Ships in xenodot. 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.
None: SKILL.md is the whole skill.
Light the graybox for pixel readability first, not photoreal mood. The SubViewport renders at a low resolution and is upscaled nearest-neighbor (AA off), so the image is a crisp pixel grid. Soft/filtered shadow penumbra and auto-exposure both fight that grid: a blurred shadow edge smears across the pixels, and a moving exposure makes the same surface change brightness frame to frame. So the rig is deliberately minimal and fixed — one sun casting a hard-ish shadow that reads under the player, a sky/color ambient that fills the dark side without flattening the depth cue, and a Filmic tonemap with a pinned exposure so highlights never clip to white. That is the whole blockout rig; three-point lighting (key/fill/rim), point lights, and atmosphere are per-level theming for later, not part of this gate.
These must already be applied before this skill makes sense:
DirectionalLight3D, and the WorldEnvironment all live inside the SubViewport rig. The Environment you tune here is the SubViewport's Environment; tonemap/exposure set anywhere else does not affect the pixelated image. AA stays off and the upscale stays nearest-neighbor..tscn/.gd change is proven with the 3-layer checks (tools/verify_scene.gd + tools/verify_render.gd). In particular an Environment with background_mode = 2 (Sky) MUST reference a real Sky resource, or the property is silently dropped and the scene renders black (see godot-verify "Hand-authoring .tscn rules").levels/<name>.tscn. The rig this skill tunes is three nodes:
DirectionalLight3D at rotation_degrees = Vector3(-45, -30, 0), shadow_enabled = true — the sun, fixed angle for a long readable shadow.WorldEnvironment holding an Environment with background_mode = 2 (Sky), a ProceduralSkyMaterial Sky, and ambient_light_source = 3 (Sky). That ambient_light_source = 3 is the Sky-ambient fill this skill explains.shadow_blur / soft-shadow filtering — penumbra smears across the nearest-neighbor pixel grid and the crisp look is lost. Tune readability with bias, not blur..tscn/property edits are godot-dev's job, verified by godot-verify.One canonical path. All values can be authored as .tscn properties on the SubViewport's Environment / the DirectionalLight3D, or set from GDScript in the level's _ready(). The .tscn form is preferred (author the rig once into the level scene); the GDScript form is shown for clarity and for runtime day/night swaps.
A single directional light is the whole key light for a graybox. Fixed angle gives a long, directional shadow that reads as a depth cue.
sun.rotation_degrees = Vector3(-45, -30, 0) # fixed angle, long shadow
sun.light_color = Color(1.0, 0.95, 0.9) # faintly warm sun
sun.light_energy = 1.0
sun.shadow_enabled = true
.tscn equivalent on the DirectionalLight3D node: rotation_degrees = Vector3(-45, -30, 0), shadow_enabled = true.
The shadow under the player must be a crisp dark patch, not a soft smear and not striped/detached. Prefer shadow_normal_bias over shadow_bias; keep directional_shadow_max_distance small so the shadow stays sharp at the player.
sun.shadow_normal_bias = 1.0 # primary acne knob; raise if stripes appear
sun.shadow_bias = 0.05 # keep low; high values cause peter-panning
sun.directional_shadow_mode = DirectionalLight3D.SHADOW_PARALLEL_4_SPLITS
sun.directional_shadow_max_distance = 50.0 # lower = sharper near the player
# Do NOT set shadow_blur — soft penumbra fights the pixel grid.
Tuning order: start at shadow_normal_bias = 1.0. Stripes (acne) on lit surfaces → raise shadow_normal_bias. Shadow detached from the player's feet (peter-panning) → lower shadow_bias (and rely on normal bias). Shadow fades/pops as you walk → lower directional_shadow_max_distance toward 50m.
Ambient light fills the shadowed side so it stays readable, without washing the scene flat. ambient_light_source = Sky (= 3) reuses the procedural sky as cheap real-time fill. Balance it: enough fill to read the dark side of a box, not so much that the sun's shadow disappears.
var env: Environment = world_environment.environment
env.background_mode = Environment.BG_SKY # = 2; REQUIRES a real Sky resource
env.ambient_light_source = Environment.AMBIENT_SOURCE_SKY # = 3
env.ambient_light_energy = 1.0 # lower toward ~0.5 if shadows look flat/washed out
If a level has no sky, use AMBIENT_SOURCE_COLOR with a mid ambient_light_color instead — same balance rule.
On the same SubViewport Environment, set a Filmic tonemap and pin the exposure so bright surfaces (lit floor, light-colored boxes) don't clip to pure white.
env.tonemap_mode = Environment.TONE_MAPPER_FILMIC # = 3
env.tonemap_exposure = 1.0 # fixed; lower (~0.8) if highlights still blow out
# Out of scope for pixel readability: TONE_MAPPER_ACES, TONE_MAPPER_AGX, auto-exposure, SSAO.
.tscn equivalent on the Environment sub-resource: tonemap_mode = 3 (Filmic), tonemap_exposure = 1.0. Note: AgX is 4.6-only; we target 4.3+, so Filmic is the deliberate choice, not a fallback we are forced into.
Run via F5 (full game through main.tscn) or F6 (the level scene directly), and through godot-verify's tools/verify_render.gd (the scene's own camera/lights — the editor viewport is NOT verification):
| Symptom | Fix |
|---|---|
| Scene is completely black | No light, no camera in the SubViewport, or background_mode = 2 (Sky) without a real Sky resource (silently dropped). Add the DirectionalLight3D + a Sky resource; confirm camera is inside the SubViewport. |
| Geometry dark despite the sun | Ambient missing. Set ambient_light_source = Sky (=3) or Color; raise ambient_light_energy toward 1.0. |
| Shadow acne — stripes on lit surfaces | shadow_normal_bias too low. Raise it (start 1.0, increase). Prefer it over shadow_bias. |
| Peter-panning — shadow detached from the player's feet | shadow_bias too high. Lower it (~0.05) and rely on shadow_normal_bias. |
| Shadow pops in/out or fades as you walk | directional_shadow_max_distance too high. Lower toward 50m; sharpness improves as range shrinks. |
| Highlights blown to pure white | Exposure/tonemap. Set tonemap_mode = Filmic; lower tonemap_exposure (~0.8). Do NOT reach for ACES/AgX/auto-exposure (out of scope). |
| Shadow looks soft/smeared, pixels blurred at its edge | shadow_blur is set (or soft-shadow filtering enabled). Remove it — hard shadows only in this pipeline. |
Adapted from GodotPrompter (https://github.com/jame581/GodotPrompter), MIT License, Copyright (c) GodotPrompter Contributors.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub arthur0n/xenodot-forge --plugin xenodot50 skills in this plugin
/agent-reportThe agent→orchestrator handoff protocol. A backgrounded worker's relayed result string truncates on long, tool-heavy turns, so the handoff is an artifact, not a string — the worker Writes its full report to a file, and the orchestrator reads that file directly. Load this whenever a task asks you to hand off a structured report to another agent. Any agent doing background work that must be handed off uses it — not only builders. Defines the report contract the writer follows./autonomous-main-goalThe hive's Autonomous Mode self-drive loop. When a standing Main Goal is active, evaluate it, break it into ordered slices, then on each `[Autonomous check/cavemanUltra-compressed communication mode — always active for this agent. Cuts token usage ~75% by dropping filler, articles, and pleasantries while keeping full technical accuracy. Drop only when interviewing the user via mcp__ui__form (labels/descriptions must be clear prose).
/godot-3d-pixelationSubViewport-based low-resolution crisp rendering of a 3D scene in Godot 4.x — the foundation of the "3D pixel art" style. Use for pixelated/retro/PSX/low-res 3D, setting SubViewport render resolution, "crisp pixels", restructuring a scene tree so 3D renders below window resolution, or when a downscaled viewport looks blurry./godot-animation-librariesImport and play skeletal animations on a sourced 3D character in Godot 4.6 — the separate-glTF workflow (one model file + anim-only files), merging anim clips into an AnimationLibrary loaded onto your own AnimationPlayer, and retargeting a foreign animation (e.g. Mixamo) onto your skeleton via SkeletonProfileHumanoid. Use when an animated rigged .glb arrives in assets/models/, when a character must stop being a static capsule and play a looping idle/walk, when animations come in their own glTF separate from the model, when a sourced animation targets a different skeleton than your character, or when an imported AnimationPlayer's clips won't play / play on the wrong bones. NOT for static-prop import (that is godot-mesh-import + its style delta), NOT for shader-time foliage sway (godot-foliage), NOT for 2D sprite-frame animation./godot-arena-spatial-designOPT-IN spatial-design principles for a combat/arena encounter space in Godot — nine measurable properties (loop topology, interior cover, partitioned sightlines, cover mix, bounded verticality, landmarks, spawn-to-engagement pacing, scale/density, choke-vs-open) that turn a flat blockout into a real firefight space. Use ONLY when the level being built is a combat/arena encounter (enemy waves, gunfights) — apply ALONGSIDE whichever build method is chosen (`godot-greybox` static default, `godot-runtime-arena` runtime, or `godot-gridmap-level` tile-fill). NOT the build mechanism itself, NOT a general level-design bar for non-combat spaces (that's `level-design-principles`).Other plugins' skills for the same job