Shader Story - Unity URP shader tutorials and technical-art reference
“When love and skill work together, expect a masterpiece.” - John Ruskin
Shader Story is a free library of Unity URP shader tutorials and technical-art techniques in HLSL: lighting models, texture and UV projections, procedural patterns, vertex animation and VFX shaders, each paired with a live visual demo and ready-to-use URP shader code (Unity 6.0+ / URP 17.0+). It is a side project of Decompiled Art - bringing deep-dive rendering insight into an accessible format, built for learning, reference and hands-on experimentation.
Library¶
Foundations¶
The engine-agnostic core: what lives on a mesh, how a frame is rendered, and the surfaces and shadows that make it read. Start here.
Textures¶
Where color and detail live: how to read a texture, project UVs from anywhere, and set them moving with time.
- Introduction
- BasicUVs
- ColorData
- Cubemaps
- FilteringMipmaps
- ManualFiltering
- NormalMapSampling
- SamplingTinting
- ShadowMapSampling
- TextureArrays
- TilingOffset
- UVRotation
- VirtualTextures
- Billboarding
- BulgeUVs
- InteriorMapping
- ObjectScaledUVs
- ParallaxMapping
- PolarUVs
- ScreenSpaceUVs
- SpriteSpaceUVs
- TriPlanar
- Dissolve
- ScrollingUVs
- TimeBlending
- TimeOverflow
Common Functions¶
Core HLSL math and vector functions, each with a live visual demo.
- Abs
- ClampSaturate
- Cross
- Distance
- Dot
- Exp
- FloorCeil
- Fmod
- Frac
- Length
- Lerp
- MinMax
- Negate
- Normalize
- Power
- Remap
- SineCosine
- Smoothstep
- Sqrt
- Step
Derivatives¶
Screen-space derivatives for stylised edges, silhouettes and hard-surface shading.
Patterns & Shapes¶
Procedural 2D shapes, patterns and noise functions.
- Checkerboard
- Circle
- Grid
- HexGrid
- Line
- Perlin
- Simplex
- Turbulence
- Value
- Voronoi
- Worley
- Ripplewaves
- Square
- Stripes
- Whirl
Lighting Models¶
From classic shading to stylised models, matcaps and image-based lighting.
- AmbientHemi
- Banded
- BlinnPhong
- Fresnel
- HalfLambertian
- Halftone
- Ibl
- Lambertian
- Lut
- Matcap
- Minnaert
- Toon
Vertex Animation¶
GPU-driven motion: coordinate spaces, time, masks, patterns and shipping notes.
- CoordinateSpaces
- DataSources
- GameplayDrivenMotion
- Introduction
- AuthoredMasks
- ProceduralMasks
- RuntimeMasks
- Matrices
- ControlledIrregularity
- GerstnerWaves
- NormalsReconstruction
- SineWaveOffset
- MultipleObjectsPivotBake
- SingleObjectMeshPivot
- SingleObjectPivotData
- Bounds
- Instancing
- Lods
- MotionVectorsTaa
- NormalsShipping
- PassConsistency
- EasingFunctions
- PhaseOffset
- TimeWrapping
Explore¶
Browse the full library from the navigation on the left, or use the search box to jump straight to a function, lighting model, pattern or technique.

