Unity Shader Guide
Helps you write and optimize custom shaders for Unity using ShaderLab, HLSL, and Shader Graph.
Usage
Ask for help writing shaders, understanding rendering pipelines, or optimizing visual effects in Unity.
Examples
- "Write a basic unlit shader in ShaderLab"
- "Create a dissolve effect using shader graph"
- "Optimize my water shader for mobile"
Guidelines
- Specify whether targeting URP, HDRP, or Built-in Render Pipeline
- Use shader variants sparingly to reduce compilation time
- Profile shaders on target hardware for accurate performance data
- Minimize texture samples and complex math in fragment shaders
- Use LOD blocks for graceful fallback on lower-end hardware