← All resources

Unity GitHub - URP ShaderLibrary

Auto-discovered

Library / Codebase Intermediate

Unity

Visit resource ↗

Description

The URP ShaderLibrary in Unity's Graphics GitHub repository is the HLSL include tree inside com.unity.render-pipelines.universal. It defines structs and functions that stock URP shaders and Shader Graph code include at compile time.

BRDF.hlsl, Lighting.hlsl, Shadows.hlsl, and GlobalIllumination.hlsl cover PBR lighting, shadow filters, fog, decals, and g-buffer helpers, wiring InputData and SurfaceData into UniversalFragmentPBR-style evaluation.

Intermediate authors extending Lit passes or Renderer Features should already know URP keywords, include paths, and package layout. It is reference source, not a beginner tutorial.

Browse on GitHub or diff against Packages/com.unity.render-pipelines.universal/ShaderLibrary after install when upgrading Unity.

Shader tutorials often cite these files to match built-in light loops, clear coat, and specular highlights with Unity shipping pipeline.