Skip to content
SkillModel-led2,530 tokens in use

shader-programming

Explains the maths behind common shader effects in GLSL with HLSL equivalents, covers porting between engines, and compiles every shader with glslangValidator.

9,682 stars on the repository Apache License 2.0gamedev-skills/awesome-gamedev-agent-skills · skills/disciplines/shader-programming
npx skills add gamedev-skills/awesome-gamedev-agent-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing shader-programming costs

101tokens idle
2,530tokens in use
4,846tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter12/15
  • Structure22/25
  • Examples12/15
  • Output5/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity92
  • Maintenance96
  • Community60
  • Maturity24
  • Momentum40

Shader Programming is a cross-engine skill for the technique behind GPU effects: tint, scrolling UVs, dissolve with an edge glow, fresnel rim light, outline, vignette and grading. Snippets are GLSL with HLSL forms alongside, and the engine skills supply syntax and material wiring.

The agent names the shader stage, works in one coordinate space, compiles each file with glslangValidator, checks the parameter endpoints numerically and asks you to look on the target device.

What You Get

  • Worked GLSL snippets for tinting, frame-rate independent UV scrolling, dissolve with a glowing edge and fresnel rim light
  • A GLSL to HLSL mapping reference, with clip-space and matrix-order notes
  • Longer 2D outline, vignette and colour grading shaders in a reference file
  • A compile step with glslangValidator, plus an ES 3.00 variant for web targets
  • Endpoint checks, such as dissolve at 0 showing no edge colour
  • A gotchas list on precision, flipped V, reversed smoothstep and discard cost

Common Use Cases

  • Designing or debugging the maths of a dissolve, outline or rim effect
  • Porting a shader between GLSL and HLSL or between engines
  • Chasing specks, banding or shimmer that shows only on mobile GPUs
  • Checking a shader compiles before opening the editor

What Makes It Unique

It teaches the technique once and leaves each engine’s syntax to that engine’s skill. The patterns carry the fixes for real bugs, such as dissolve specks at amount 0, and the skill states which GLSL variants compile under which version header. It also notes renderer limits like three.js WebGPURenderer running only node materials.

Under The Hood

The skill is a SKILL.md with one reference file of longer effects and port notes. The agent writes shader files in your project and runs glslangValidator on them from the command line, and naga for WGSL or the Godot headless check where the engine skill gives one. It may render a test quad in the engine to read pixels back. It does not fetch web pages or call outside services.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers