Game Shader Programming
Writes and fixes game shaders like dissolve, outline and rim light in GLSL or HLSL that look right on any device.
Claude's review
8/10 Correct cross-engine shader maths with compile-checked snippets, endpoint checks and real gotchas like reversed smoothstep and ES uniform initialisers.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Engine-neutral shader technique in GLSL with HLSL equivalents: how dissolve, outline, fresnel rim and post effects work, and porting GLSL to HLSL. Use when the math of an effect is the question, or for specks or mobile shimmer. To write a shader in one engine, its skill alone is enough (`godot-shaders`, `threejs-materials-lighting`, `pixijs-rendering`). Not for particles (`unreal-niagara`).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: shader-programming
description: >
Engine-neutral shader technique in GLSL with HLSL equivalents: how dissolve, outline, fresnel
rim and post effects work, and porting GLSL to HLSL. Use when the math of an effect is the
question, or for specks or mobile shimmer. To write a shader in one engine, its skill alone is
enough (`godot-shaders`, `threejs-materials-lighting`, `pixijs-rendering`). Not for particles
(`unreal-niagara`).
---
# Shader programming (cross-engine)
Shaders run per vertex and per pixel on the GPU. The pipeline, coordinate spaces, UV tricks and
the maths behind common effects port across engines; only the dialect and built-in names
change. This skill owns that technique in GLSL with HLSL equivalents. Load the engine skill
(`godot-shaders`, `threejs-materials-lighting`, `pixijs-rendering`) as well for the syntax,
built-ins and how the material is wired.
## When to use
- Designing or debugging an effect's maths: tint, scroll, dissolve, outline, rim, vignette,
grading.
- Reasoning about stages, spaces, interpolation and precision.
- Porting a shader between GLSL and HLSL, or between engines.
**Not this skill:** Godot shading language syntax and pipeline (`godot-shaders`), three.js
`ShaderMaterial` vs TSL (`threejs-materials-lighting`), PixiJS filters (`pixijs-rendering`),
particle systems (`unreal-niagara`), post-process stack settings (the engine's renderer docs),
per-pixel cost in a profiler (`performance-optimization`).
## Core workflow
1. **Name the stage.** The vertex stage moves vertices to clip space and passes data on; the
fragment stage runs per pixel and outputs a colour. Most game effects are fragment work.
2. **Pick one space** for lighting maths (world or view) and convert every vector into it.
3. **Drive effects with UVs, uniforms and time.** UVs are 0..1; uniforms are constant per draw;
varyings are interpolated from vertex to fragment.
4. **Prefer `mix`, `step`, `smoothstep` and `clamp` to branches** on per-pixel values: pixels run
in lockstep, so a branch that differs between neighbours runs both sides. A branch on a
uniform is cheap.
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Game Audio Mixing
Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.
8/101 credit -
Checked
Game camera tuning
Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.
8/101 credit -
Checked
Game Enemy AI
Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.
8/101 credit -
Checked
Game Loop and Timing
Makes movement, timers and physics behave the same at any frame rate in Unity, Godot, Bevy and web games.
7/101 credit -
Checked
Godot Game Testing
Writes and runs Godot tests with gdUnit4 or GUT, including scene tests and headless runs that report real results.
7/101 credit -
Checked
Game Security Review
Reviews Unity, Godot and Unreal code for cheats that hurt other players, purchase exploits and unsafe save files.
7/101 credit