Shader Programming
/shader-programming
Write game shaders from cross-engine fundamentals — the vertex→fragment pipeline, coordinate spaces, UV math, and common 2D/3D effects (tint, UV scroll, dissolve, outline, fresnel rim, vignette) in GLSL with HLSL equivalents.
- License
- Apache-2.0
- By
- By GameSkill
Part of
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
Tested by GameSkill
26/26 checks passed on OpenGL 3.3 core (Mesa llvmpipe, EGL) + glslang 16.6.0 (2026-10-28): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.
Test reportWhat this skill does
When it triggers
Write game shaders from cross-engine fundamentals — the vertex→fragment pipeline, coordinate spaces, UV math, and common 2D/3D effects (tint, UV scroll, dissolve, outline, fresnel rim …
GameSkill's tested copy
GameSkill's tuned build of this skill: the skill files from commit 184b72be0288, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.
License: based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.

Self-check
- 清楚每段代码在顶点还是片元阶段,法线和视线方向在同一个空间并已归一化 / Knows which stage each piece runs in; normal and view direction share one space and are normalized
- 动画用真实时间 uniform 乘速度,并用 fract 回绕 UV / Animation uses a real time uniform times speed, with fract wrapping the UV
- 能用 mix / step / smoothstep 的地方不用分支,smoothstep 的两个边界从小到大 / Uses mix / step / smoothstep instead of branches where possible, with smoothstep edges in ascending order
- 溶解在 amount 为 0 时完全显示、为 1 时完全消失 / Dissolve is fully visible at amount 0 and fully gone at amount 1
- 发到 WebGL2 / three.js / PixiJS 时加 precision,并从代码里设置 uniform 默认值 / For WebGL2 / three.js / PixiJS, adds precision and sets uniform defaults from code
Install
Tell your AI
Install the skill from https://gameskill.dev/skills/shader-programming/install.md
GameSkill's tested copy
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/shader-programming.zip -o /tmp/gameskill-shader-programming.zip
unzip -oq /tmp/gameskill-shader-programming.zip -d .claude/skills
rm /tmp/gameskill-shader-programming.zipWhat you get
- Worked steps: Fragment basics: sample, tint, and combine; Scrolling UVs (animated texture) — frame-rate independent; Dissolve; Fresnel rim light (3D) — brighten glancing angles
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
Good fit
- Requests about shaders, fragment/pixel shader, vertex shader, UV or GLSL
Try this prompt
Write a dissolve shader with a glowing edge in GLSL, and give me the HLSL version.About this skill
Write game shaders from cross-engine fundamentals — the vertex→fragment pipeline, coordinate spaces, UV math, and common 2D/3D effects (tint, UV scroll, dissolve, outline, fresnel rim, vignette) in GLSL with HLSL equivalents. Use when the user mentions shaders, fragment/pixel shader, vertex shader, UV, GLSL, HLSL, or effects like dissolve, outline, or rim light.
From the shader-programming SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Fragment basics: sample, tint, and combine
- Scrolling UVs (animated texture) — frame-rate independent
- Dissolve (threshold a noise map, glow the edge)
- Fresnel rim light (3D) — brighten glancing angles
FAQ
2D Combat VFX & Shader Pack (Godot 4 + Unity)
8 production-tested 2D shaders with 1:1 Godot 4 (.gdshader) & Unity HLSL (.shader) parity: 2-Stage Hit Flash, AI Cutout Clean-Sprite Haze Removal, Holo Gold Card Shine, Atlas-Safe Wind Sway, Procedural Sword Slash Arc, Boss Shockwave Aura, Ember Dissolve Burn & 5-in-1 Art Style Switcher.
- 8 Godot 4 (.gdshader) + 8 Unity 2D HLSL (.shader) = 16 verified production shader files
- Includes AI Cutout Clean-Sprite shader (removes semi-transparent PNG halos at render time)
Based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.
Works well with
Skills the author points to as related or as the better fit for neighbouring tasks.
Godot Shaders
Godot 4.7 shaders for 2D and 3D: vertex and fragment code, uniforms, TIME and UV animation, and screen-reading effects.
Procedural Generation
Procedural content with seeded RNG: Perlin and Simplex noise terrain, rooms-and-corridors dungeons and weighted loot tables.
More from Awesome Gamedev Agent Skills
See all 462D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
Similar skills
Universal Modder
Skills, tools and a fal MCP that let Claude Code mod PC games you own: recon, reverse engineering, generated assets, in-game testing.
Scenario Skills
Production-ready images, video, audio and 3D from any agent through the Scenario MCP, plus expert teams for Blender, Unreal and Unity.
Puretty Sprites
An MCP server for LibreSprite (a 143-tool port of aseprite-mcp) plus ComfyUI, Krita and Blender pipelines, so an agent can turn concept art into clean, grid-aligned pixel sprites animated in up to 16 directions.
Style Cards (one art style as hard limits, switch looks by switching cards)
A GameSkill original that writes a game's art style down as a card of measurable limits (canvas, colours and palette, alpha, triangles, shading, materials, textures, voxel grid), pastes it into every asset request and checks every asset against it. Ships 16 cards from pixel (including fixed PICO-8, CGA, four-greens LCD and Endesga 32 palettes) and one-bit to low-poly, voxel and toon, a no-dependency PNG checker, a Blender GLB checker and a palette locker; switch the whole look by switching the card.