# shader-techniques

shader-techniques — a game-graphics skill with working HLSL examples: a surface shader, two-pass toon lighting and a dissolve effect. Handy when you write materials by hand.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 110 installs · ★ 56 repo stars
- Author: pluginagentmarketplace
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/pluginagentmarketplace/custom-plugin-game-developer/tree/HEAD/skills/shader-techniques/SKILL.md
- Updated: 2026-01-05
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/shader-techniques

## What it does

The skill walks the rendering pipeline in order: vertex stage, rasterization, fragment stage, framebuffer output. Then come three HLSL samples you can drop into a Unity project. A surface shader with albedo tint, a normal map and metallic/smoothness sliders. A toon shader in two passes, where the first pushes vertices along their normals for an outline and the second reads stepped light from a ramp texture. A dissolve driven by a noise texture, with a coloured edge.

It takes two inputs: `shader_type` (`surface`, `unlit`, `post_process`, `compute`, `particle`) and `platform` (`pc`, `console`, `mobile`, `vr`). A failed compile gets retried up to 3 attempts with exponential backoff. Events `start`, `complete`, `error` and `compile` go to the log, along with metrics for shader variant count, compile time and GPU time in milliseconds.

The toon sample ships `_RampTex` as plain white. Skip your own ramp and the stepped shading flattens into an even fill. All examples target Unity, so another engine means rewriting the code for its own shader language.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-game-developer --skill shader-techniques -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/shader-techniques/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/shader-techniques/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-game-developer --skill shader-techniques -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/shader-techniques/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-game-developer --skill shader-techniques -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/shader-techniques/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install pluginagentmarketplace/custom-plugin-game-developer skills/shader-techniques
```

2. **Manually: put the files in place**
- File: `.github/skills/shader-techniques/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-game-developer --skill shader-techniques -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-game-developer --path skills/shader-techniques
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/shader-techniques/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add pluginagentmarketplace/custom-plugin-game-developer --skill shader-techniques -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/pluginagentmarketplace/custom-plugin-game-developer/tree/HEAD/skills/shader-techniques/SKILL.md

## When to use it
- write a surface shader with PBR sliders and a normal map
- build two-pass toon lighting with a normal-based outline
- add a noise-driven dissolve to a material
- see where vertex, raster and fragment stages sit in the pipeline
- pick the right shader type for a post-process or particle job

## Example prompts
- Write a Unity surface shader with a normal map and metallic and smoothness sliders.
- Make a toon shader with a normal-based outline pass and a ramp texture.
- Explain the dissolve effect that uses a noise texture and an edge color.

## Similar
- [shader-graph-create-custom-node](https://affpapa.org/en/nevibecode/skills/shader-graph-create-custom-node.md) — skill · 7100 installs
- [shader-programming](https://affpapa.org/en/nevibecode/skills/shader-programming.md) — skill · 13300 installs
- [slug-font-rendering](https://affpapa.org/en/nevibecode/skills/slug-font-rendering.md) — skill · 1300 installs
- [slang-shader-engineer](https://affpapa.org/en/nevibecode/skills/slang-shader-engineer.md) — skill · 43 installs
- [unity-shaders-rendering](https://affpapa.org/en/nevibecode/skills/unity-shaders-rendering.md) — skill · 133 installs
- [scenario-unity-shaders](https://affpapa.org/en/nevibecode/skills/scenario-unity-shaders.md) — skill · 600 installs

From the same set: [pluginagentmarketplace/custom-plugin-game-developer](https://affpapa.org/en/nevibecode/by/pluginagentmarketplace/custom-plugin-game-developer.md) — 12 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
