Skip to main content
ANY
SkillFreeBy GameSkill · tuned

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
Download ZIP

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 report

What 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.

Download tested ZIP (41 KB)Roadmap: Game feel & VFX

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.

Shader Programming

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

Tested copy into .claude/skills/
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.zip

What 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

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

MATCHED PRO KIT$8.25/mo

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.

More from Awesome Gamedev Agent Skills

See all 46

Similar skills