phi-lira Gist - URP PBR Template
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.
Related resources
- 2D Water Shader Breakdown (Cyanilux)
A Shader Graph breakdown of stylized 2D water in Unity URP: sprite reflections via a second camera, scrolling noise distortion, fake highlights, and tilemap shoreline ripples for pixel art.
100% match · <shaders><intermediate><blog><catalog><cyanilux><developers><examples><free> - Book (w/ Turnable Pages) Breakdown (Cyanilux)
Cyanilux breakdown of a URP spellbook with vertex-shader page turns, flipbook page textures, dual Lit Graphs, pooling C# driver, and optional Blender setup notes.
100% match · <shaders><intermediate><blog><catalog><cyanilux><developers><examples><free> - Cloud Shader Breakdown (Cyanilux)
Cyanilux Shader Graph tutorial for URP that builds animated cloud decks on a subdivided plane with layered world-space noise, vertex displacement, and depth-based fading at intersections.
100% match · <shaders><intermediate><blog><catalog><create><cyanilux><developers><examples> - Crystal Shader Breakdown (Cyanilux)
A Cyanilux Shader Graph walkthrough for Unity URP that builds an unlit transparent crystal with object-space Y colour gradients, camera opaque-texture refraction, Fresnel opacity, and HDR glow for bloom.
100% match · <shaders><intermediate><blog><catalog><cyanilux><developers><examples><free> - Custom Renderer Features (Cyanilux)
Long-form Cyanilux guide to URP ScriptableRendererFeature and ScriptableRenderPass code: example effects, RTHandle setup, blit paths, and Unity 6 Render Graph notes.
100% match · <shaders><blog><catalog><cyanilux><examples><free><graph><link> - Depth (Cyanilux)
Long-form Cyanilux tutorial on Unity depth spaces, Z buffers, Scene Depth sampling, SV_Depth, and world-position reconstruction in URP and HDRP.
100% match · <shaders><about><blog><catalog><cyanilux><examples><free><graph> - Dissolve Shader Breakdown (Cyanilux)
URP Shader Graph breakdown by Cyanilux on dissolve effects: Step and noise clip fragments with glowing edges, height-axis variants, and view-space UVs to reduce seam artifacts.
100% match · <shaders><intermediate><above><blog><catalog><create><cyanilux><developers> - Fire/Flame Shader Breakdown (Cyanilux)
Shader Graph breakdown of billboard fire on a quad: scrolling noise warps UVs for a flame texture or procedurally generated ellipse shapes, with per-instance randomization.
100% match · <shaders><intermediate><blog><catalog><cyanilux><developers><examples><free> - meshoptimizer - v1.2
meshoptimizer - v1.2 is an open-source library / codebase hosted on GitHub. meshoptimizer v1.2 release notes introducing experimental MikkTSpace-based tangent frame generation,…
100% match · <library><developers><linked><new><open><repository><source><useful> - Writing GPU shaders in plain Rust (Firestar99 - Sebastian Sydow at RustWeek)
Writing GPU shaders in plain Rust (Firestar99 - Sebastian Sydow at RustWeek) is a recorded talk by Sebastian Sydow, presented at RustNL. RustWeek 2026 talk by Sebastian Sydow…
100% match · <shaders><developers><free><link><source><style><useful><want> - New AMD Radeon Developer Tool Suite update brings shader source code, Extended PIX Markers, and command-line capture
New AMD Radeon Developer Tool Suite update brings shader source code, Extended PIX Markers, and command-line capture is a technical blog article by Chris Hesik. AMD GPUOpen…
100% match · <shaders><intermediate><blog><developers><free><new><page><shader> - Implicit Surface rendering for CAD
Implicit Surface rendering for CAD is a technical blog article by Francis Le Roy. Long-form blog on interactively rendering arbitrary implicit surfaces in a CAD prototype…
100% match · <blog><developers><free><loading><page><source><useful><want> - Announcing AgilitySDK 721 Preview and an addition to LinAlg in Shader Model 6.10
Announcing AgilitySDK 721 Preview and an addition to LinAlg in Shader Model 6.10 is a technical blog article by Amar Patel. DirectX Developer Blog announcing Agility SDK…
100% match · <shaders><intermediate><blog><developers><free><new><page><shader> - Partial Graphics Programs
Partial Graphics Programs is a technical blog article by Nada Ouf. DirectX Developer Blog detailing Partial Graphics Programs in Agility SDK 1.721-preview: split pipeline…
100% match · <shaders><blog><developers><free><link><page><pipeline><sample> - Dual Contouring of Signed Distance Data
Dual Contouring of Signed Distance Data is a SIGGRAPH 2026 paper with a Columbia Graphics project page linking the PDF, source, and talk materials.
100% match · <access><before><link><linked><page><source><useful><without> - On Rendering the Sky, Sunsets, and Planets
On Rendering the Sky, Sunsets, and Planets is a technical blog article by Maxime Heckel. Maxime Heckel write-up on implementing atmospheric scattering in the browser for…
100% match · <shaders><intermediate><blog><developers><examples><free><page><render> - Vulkan Ecosystem and SDK Survey - February 2026
Vulkan Ecosystem and SDK Survey - February 2026 is a SurveyMonkey collector link whose listing title identifies it as a February 2026 Vulkan ecosystem and SDK survey. The page…
100% match · <access><developers><free><help><link><open><page><source> - A silly diffuse shading model
A silly diffuse shading model is a December 2025 post on the lisyarus graphics blog about a one-liner alternative to classic Lambertian diffuse for tech demos and early…
100% match · <shaders><intermediate><about><before><blog><free><pbr><shader> - An Experimental Approach to printf in HLSL
An Experimental Approach to printf in HLSL is a December 2025 technical post by Chris Bieneman describing a holiday prototype for GPU-side printf in HLSL. It covers GPU string…
100% match · <shaders><free><linked><shader><time><useful><without><hlsl> - Early-bird deadline for the Shading Languages Symposium 2026
Early-bird deadline for the Shading Languages Symposium 2026 points to the Khronos Group page for the in-person symposium held 12-13 February 2026 in San Diego, right after…
100% match · <shaders><intermediate><access><linked><page><shader><useful><hlsl>