BosskuAI Godot Shader Developer
Use this skill for visual effects in Godot 4 written in the Godot shading language or VisualShader. It is GLSL-like but not raw GLSL, and renderer choice limits what is allowed.
How this differs from nearby skills
bosskuai-technical-artist: asset pipeline, budgets, and cross-engine art tooling; this skill is Godot shader code and review.
bosskuai-game-designer: what an effect should do for the player, not how it renders.
bosskuai-unity-multiplayer-engineer: another engine and a networking topic.
animate: UI motion on the web, not GPU shaders.
Workflow
- Define the visual target (reference image or video) and the platform. Pick the renderer first: Forward+, Mobile, or Compatibility. Use of depth or screen textures can lock the choice.
- Pick the shader type:
canvas_item for 2D and UI, spatial for 3D surfaces, particles, or sky. Declare shader_type first in every file.
- Prototype in VisualShader when artists will tweak it; port to a code shader when logic is complex or performance-critical.
- Use Godot built-ins (
TEXTURE, UV, COLOR, FRAGCOORD, TIME). Do not use Godot 3 or raw GLSL names such as texture2D. In spatial shaders, ALBEDO, ROUGHNESS and similar are outputs.
- Expose every artist-facing value as a
uniform with a hint (source_color, hint_range, hint_normal). No magic numbers in the body.
- Mobile pass: count texture samples, avoid
discard in opaque materials (prefer alpha scissor), avoid variable-length loops in fragment code, and avoid screen-texture reads that force a framebuffer copy unless justified.
- Compatibility check if broad device support matters, since this renderer has the most restrictions.
- Profile with the engine's rendering profiler and compare GPU frame time before and after.
- Put the renderer requirement and any built-in quirks in a header comment.
- For full-screen effects, use
CompositorEffect with the rendering device; chain passes and offer tiered presets per renderer.
Review checklist
Shader type / renderer target:
Texture samples in fragment:
Uniforms all hinted:
discard or alpha clip handling:
SCREEN_TEXTURE / DEPTH_TEXTURE use and justification:
Dynamic loops:
Compatibility renderer safe: yes/no
Guardrails
- Godot's shading language, renderer features, and
CompositorEffect APIs change between 4.x releases. Check the installed Godot version and its docs before relying on a built-in or render mode.
- Treat any sample budget as a starting point; measure on target hardware.
- Do not ship an effect validated only on a desktop GPU if mobile is a target.
- Get the installed editor version with
godot --version. Do not use the version in project.godot as the engine version, because it can differ from the installed editor. Before you rely on a renderer feature, check the latest stable release notes at https://github.com/godotengine/godot/releases.
- Compile and check the shader on every renderer you ship. A shader that works on Forward+ can fail on Compatibility.
- Test zero and maximum uniform values, a missing texture, and very large and very small screen sizes. Before you rename a uniform, search the project for the old name.
Full quality bar (versions, edge cases, data, deploy, proof): ../../references/checklists/engineering-quality-bar.md.
Output format
Effect and target: [description, renderer, platform]
Approach: [VisualShader / code / compositor]
Uniforms: [name, type, hint, default]
Performance notes: [samples, loops, measured frame time]
Compatibility: [renderers tested]
Risks: [list]
Adapted from agency-agents/game-development/godot/godot-shader-developer.md (agency-agents, MIT).
1---2name: bosskuai-godot-shader-developer3description: "Use when writing or reviewing Godot 4 shaders: canvas_item and spatial shaders, VisualShader graphs, CompositorEffect post-processing, renderer limits (Forward+, Mobile, Compatibility), and shader performance audits."4metadata:5 source: https://skillmd.com/skills/wankimmy/bosskuai-godot-shader-developer6---78# BosskuAI Godot Shader Developer910Use this skill for visual effects in Godot 4 written in the Godot shading language or VisualShader. It is GLSL-like but not raw GLSL, and renderer choice limits what is allowed.1112## How this differs from nearby skills1314- **`bosskuai-technical-artist`**: asset pipeline, budgets, and cross-engine art tooling; this skill is Godot shader code and review.15- **`bosskuai-game-designer`**: what an effect should do for the player, not how it renders.16- **`bosskuai-unity-multiplayer-engineer`**: another engine and a networking topic.17- **`animate`**: UI motion on the web, not GPU shaders.1819## Workflow20211. Define the visual target (reference image or video) and the platform. Pick the renderer first: Forward+, Mobile, or Compatibility. Use of depth or screen textures can lock the choice.222. Pick the shader type: `canvas_item` for 2D and UI, `spatial` for 3D surfaces, `particles`, or `sky`. Declare `shader_type` first in every file.233. Prototype in VisualShader when artists will tweak it; port to a code shader when logic is complex or performance-critical.244. Use Godot built-ins (`TEXTURE`, `UV`, `COLOR`, `FRAGCOORD`, `TIME`). Do not use Godot 3 or raw GLSL names such as `texture2D`. In spatial shaders, `ALBEDO`, `ROUGHNESS` and similar are outputs.255. Expose every artist-facing value as a `uniform` with a hint (`source_color`, `hint_range`, `hint_normal`). No magic numbers in the body.266. Mobile pass: count texture samples, avoid `discard` in opaque materials (prefer alpha scissor), avoid variable-length loops in fragment code, and avoid screen-texture reads that force a framebuffer copy unless justified.277. Compatibility check if broad device support matters, since this renderer has the most restrictions.288. Profile with the engine's rendering profiler and compare GPU frame time before and after.299. Put the renderer requirement and any built-in quirks in a header comment.3010. For full-screen effects, use `CompositorEffect` with the rendering device; chain passes and offer tiered presets per renderer.3132## Review checklist3334```text35Shader type / renderer target:36Texture samples in fragment:37Uniforms all hinted:38discard or alpha clip handling:39SCREEN_TEXTURE / DEPTH_TEXTURE use and justification:40Dynamic loops:41Compatibility renderer safe: yes/no42```4344## Guardrails4546- Godot's shading language, renderer features, and `CompositorEffect` APIs change between 4.x releases. Check the installed Godot version and its docs before relying on a built-in or render mode.47- Treat any sample budget as a starting point; measure on target hardware.48- Do not ship an effect validated only on a desktop GPU if mobile is a target.49- Get the installed editor version with `godot --version`. Do not use the version in `project.godot` as the engine version, because it can differ from the installed editor. Before you rely on a renderer feature, check the latest stable release notes at https://github.com/godotengine/godot/releases.50- Compile and check the shader on every renderer you ship. A shader that works on Forward+ can fail on Compatibility.51- Test zero and maximum uniform values, a missing texture, and very large and very small screen sizes. Before you rename a uniform, search the project for the old name.5253Full quality bar (versions, edge cases, data, deploy, proof): `../../references/checklists/engineering-quality-bar.md`.5455## Output format5657```text58Effect and target: [description, renderer, platform]59Approach: [VisualShader / code / compositor]60Uniforms: [name, type, hint, default]61Performance notes: [samples, loops, measured frame time]62Compatibility: [renderers tested]63Risks: [list]64```6566Adapted from agency-agents/game-development/godot/godot-shader-developer.md (agency-agents, MIT).