unity-shaders
Installation
SKILL.md
unity-shaders
Core Philosophy
Real-time shaders are programs executed concurrently across thousands of GPU cores for every single vertex and pixel on screen. In modern Unity (URP and HDRP), authoring game visual effects requires mastering both node-based Shader Graph and text-based HLSL. Writing efficient shaders is an exercise in computational frugality: every trigonometric function, dependent texture read, or unnecessary full-precision float in the fragment shader directly burns GPU fill-rate and tanks mobile/console frame rates.
4-Step Unity Shader & VFX Pipeline
Step 1: Pipeline Architecture: URP vs HDRP Custom Passes
- Universal Render Pipeline (URP):
- Optimized for mobile, Nintendo Switch, VR, and PC.
- Single-pass forward and deferred rendering paths.
- Extensible via
ScriptableRendererFeatureand custom Render Passes.
- High Definition Render Pipeline (HDRP):
- High-end PC and current-gen consoles (PS5, Xbox Series X).
- Compute-shader-driven deferred clustered lighting, volumetric fog, and ray-tracing.
- Extensible via
CustomPassVolume.