← All resources

phi-lira Gist - URP PBR Template

Auto-discovered

Library / Codebase Intermediate

phi-lira

Visit resource ↗

Description

phi-lira's GitHub Gist hosts UniversalPipelineTemplateShader.shader, a handwritten PBR starter for Unity Universal Render Pipeline 7.1+.

The forward pass pulls Core.hlsl and Lighting.hlsl, mirrors Lit properties, fills SurfaceData and BRDFData, shades lights with GI and shadows, and reuses URP Lit passes for shadow casting, depth-only, and meta.

Intermediate HLSL authors can paste it to learn LightMode tags, keyword pragmas, and UnityPerMaterial batching through LitInput.hlsl instead of Shader Graph output.

Comments explain RenderPipeline tags, stripped multi_compile variants, and that the file is pedagogical rather than performance-matched to stock Lit.

The gist draws many comments and forks; community threads link phi-lira's UniversalShaderExamples when discussing handwritten URP shaders.