bgrenat/godot-game-dev-studio/gamedev-shader-programming
Claude Code and agent skill by bgrenat/godot-game-dev-studio
- community
Checking that the SKILL.md file is still in the repository.
Imported awesome-gamedev-agent-skills guidance for shader-programming workflows in game development projects. Use when writing vertex or fragment shaders, working with UVs and coordinate spaces, or building common visual effects.
Install
npx vskill@latest install bgrenat/godot-game-dev-studio/gamedev-shader-programmingSKILL.md
The same SKILL.md was published earlier as bgrenat/godot-game-dev-studio/gamedev-shader-programming.
Shader programming (cross-engine)
Shaders are small programs that run per vertex and per pixel on the GPU. The concepts — the pipeline, coordinate spaces, UVs, and how common effects are built — port across engines; only the language dialect and built-in variable names change. This skill teaches those portable fundamentals in GLSL with HLSL equivalents; use godot-shaders (or Unity/Unreal material docs) for the exact engine syntax and built-ins.
When to use
- Use to understand or write vertex/fragment shaders and to reason about UVs,
coordinate spaces, and the GPU pipeline.
- Use to build common effects: tint/recolor, scrolling textures, dissolve,
outlines, fresnel/rim light, vignette, color grading.
- Use to translate a shader concept between GLSL and HLSL, or between engines.
When *not* to use: for an engine's exact shader language and built-ins, use godot-shaders (Godot shading language) or the engine's material docs. For full particle VFX systems, see unreal-niagara. For post-process stacks, defer to the engine's renderer settings.
Core workflow
- Know which stage you're in. The vertex shader transforms each vertex
into clip space and passes data (UVs, normals) onward; the fragment/pixel shader runs per rasterized pixel and outputs a color. Most game effects live in the fragment stage.
- Track coordinate spaces. Positions move model → world → view → clip space;
normals belong in world or view space. Mixing spaces is the most common bug.
- Drive effects with UVs and time. UVs are
0..1texture coordinates;
offset, scale, or distort them, and animate with a time uniform.
- Work per pixel, branch-light. Prefer
mix,step,smoothstep, and
clamp over if where possible; GPUs run pixels in lockstep and dislike divergent branches.
- Pass data via uniforms (constant per draw) and varyings (interpolated
vertex→fragment). Keep texture samples few; they dominate cost.
- Verify visually and on target hardware. Shaders that look right on desktop
can break on mobile (precision, missing features). Test where it ships.
Patterns
GLSL-style fragment snippets (close to Godot's canvas_item/spatial shaders and OpenGL). See references/effects.md for the HLSL equivalents and the full outline/fresnel/vignette shaders.
1. Fragment basics: sample, tint, and combine
2. Scrolling UVs (animated texture) — frame-rate independent
3. Dissolve (threshold a noise map, glow the edge)
4. Fresnel rim light (3D) — brighten glancing angles
Pitfalls
- Mixing coordinate spaces (lighting a world-space normal against a
view-space light) yields subtly wrong shading. Pick one space and convert everything into it.
- Forgetting to normalize interpolated normals/directions: interpolation
shortens vectors, so dot() results drift. normalize() in the fragment stage.
- UV assumptions across engines. Some engines flip V (top-left vs bottom-left
origin); a texture may appear upside-down. Know your engine's convention.
- Heavy branching / dynamic loops stall GPUs. Prefer
step/smoothstep/
mix; reserve if/discard for genuinely cheap early-outs.
- `discard` defeats early-Z and can hurt performance on tiled mobile GPUs;
prefer alpha blending where you can.
- Precision on mobile:
highpvsmediumpmatters; large UVs or time values
in low precision shimmer. Use adequate precision for coordinates and time.
- Assuming GLSL == HLSL.
mix↔lerp,fract↔frac,texture()↔.Sample(),
vec2↔float2, column- vs row-major matrices. See the reference mapping.
References
references/effects.md— full outline (2D sprite + 3D), vignette, and color
grading shaders; the GLSL↔HLSL function/type mapping table; per-engine notes (Godot canvas_item/spatial, Unity ShaderLab/HLSL, Unreal material nodes).
Related skills
godot-shaders— Godot shading language syntax, built-ins, and screen-reading.unreal-niagara— GPU particle VFX (a different shader use).procedural-gen— the noise that drives dissolve and procedural texturing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/gamedev-shader-programming/SKILL.md
Popularity
- Repository stars
- 16
- Repository forks
- 2
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bgrenat/godot-game-dev-studio/gamedev-shader-programming)