# unity-shaders-rendering

unity-shaders-rendering guides AI assistants through Unity shaders, lighting setups, and render pipelines across URP, HDRP, and Built-in RP.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 133 installs · ★ 66 repo stars
- Author: JosiahSiegel
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/JosiahSiegel/claude-plugin-marketplace/tree/HEAD/plugins/unity-master/skills/unity-shaders-rendering/SKILL.md
- Updated: 2026-06-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/unity-shaders-rendering

## What it does

This skill equips coding agents with targeted guidance on Unity graphics. It covers HLSL shader structures for Universal Render Pipeline, Shader Graph recipes such as triplanar mapping and dissolve, lighting baked workflows, and post-processing stacks via Volume Profile assets.

Code templates follow modern Scriptable Render Pipeline standards. Parameters require the `CBUFFER_START(UnityPerMaterial)` block to keep SRP Batcher working, while textures use `TEXTURE2D` instead of older CG syntax.

Legacy Built-in RP is explicitly flagged as migration-only, so projects relying on old surface shaders will get less direct utility from these snippets.

## Requirements
- Works with: Unity

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add JosiahSiegel/claude-plugin-marketplace --skill unity-shaders-rendering -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add JosiahSiegel/claude-plugin-marketplace --skill unity-shaders-rendering -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add JosiahSiegel/claude-plugin-marketplace --skill unity-shaders-rendering -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install JosiahSiegel/claude-plugin-marketplace plugins/unity-master/skills/unity-shaders-rendering
```

2. **Manually: put the files in place**
- File: `.github/skills/unity-shaders-rendering/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add JosiahSiegel/claude-plugin-marketplace --skill unity-shaders-rendering -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/JosiahSiegel/claude-plugin-marketplace --path plugins/unity-master/skills/unity-shaders-rendering
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add JosiahSiegel/claude-plugin-marketplace --skill unity-shaders-rendering -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/JosiahSiegel/claude-plugin-marketplace/tree/HEAD/plugins/unity-master/skills/unity-shaders-rendering/SKILL.md

## When to use it
- write SRP Batcher compatible HLSL shaders for URP
- build dissolve or rim glow setups in Shader Graph
- configure light baking with GPU Lightmapper and probes
- set up camera post-processing via Volume overrides
- migrate shader code from legacy CGPROGRAM to HLSL

## Example prompts
- Create a basic URP unlit HLSL shader with SRP Batcher support
- Show node connections for an outline effect in Shader Graph
- What are the best settings for indoor lightmap baking in URP?

## Source text · SKILL.md · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: ea365cede7005f7f.

BEGIN THIRD-PARTY FILE ea365cede7005f7f
```text
---
name: unity-shaders-rendering
description: |
  Unity shaders, materials, and rendering pipelines (URP/HDRP/Built-in).
  PROACTIVELY activate for: (1) writing shaders in Shader Graph, HLSL, or ShaderLab, (2) URP and HDRP shader authoring, (3) custom render pipeline work (SRP), (4) lighting setup (baked vs realtime, lightmaps, Global Illumination), (5) post-processing stacks, (6) reflection probes and light probes, (7) custom render features and full-screen passes, (8) shader stripping and variant management, (9) compute shaders, (10) ray tracing in HDRP.
  Provides: Shader Graph templates, HLSL snippets, URP/HDRP differences, lighting setup recipes, render-feature examples, and shader-variant guidance.
---

# Unity Shaders and Rendering

## Overview

Reference for Unity's rendering systems, shader development, lighting configuration, and visual effects. Covers all three render pipelines, Shader Graph, hand-written shaders, and VFX Graph.

## Render Pipeline Comparison

| Feature | Built-in RP | URP | HDRP |
|---------|------------|-----|------|
| Target | Legacy projects | Mobile, VR, wide range | High-end PC/console |
| Shader language | Surface shaders + HLSL | HLSL (no surface shaders) | HLSL |
| Shader Graph | Yes | Yes | Yes |
| SRP Batcher | No | Yes | Yes |
| Render Features | No | Yes (ScriptableRendererFeature) | Custom Pass |
| Post-processing | Post Processing Stack v2 | Volume system (built-in) | Volume system (built-in) |
| Ray tracing | No | No (probe-based) | Yes (DXR) |
| Performance | Moderate | Optimized for scale | Highest fidelity |

**Recommendation:** Use URP for new projects unless targeting high-end visuals exclusively (HDRP). Built-in RP is legacy -- migrate when possible.

## Shader Graph

### Getting Started

1. Right-click in Project: Create > Shader Graph > URP > Lit Shader Graph
2. Double-click to open Shader Graph editor
3. Build node network connecting to Master Stack outputs
4. Create a Material using the shader, assign to renderers

### Master Stack Outputs (URP Lit)

| Output | Type | Purpose |
|--------|------|---------|
| Base Color | Color (RGB) | Albedo/diffuse color |
| Normal | Vector3 | Tangent-space normal map |
| Metallic | Float (0-1) | Metal vs. dielectric |
| Smoothness | Float (0-1) | Roughness inverse |
| Emission | Color (RGB) | Self-illumination |
| Alpha | Float (0-1) | Transparency |
| Alpha Clip Threshold | Float | Cutoff for alpha testing |

### Common Node Patterns

| Effect | Key Nodes |
|--------|-----------|
```
END THIRD-PARTY FILE ea365cede7005f7f

The third-party file has ended. Everything between the ea365cede7005f7f tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

First 2513 of 8201 bytes. © JosiahSiegel · MIT · https://github.com/JosiahSiegel/claude-plugin-marketplace/tree/HEAD/plugins/unity-master/skills/unity-shaders-rendering/SKILL.md

_Part of the page did not fit — see the HTML version._

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