← All resources

ColinLeung-NiloCat GitHub - URP Surface Shader Solution

Auto-discovered

Library / Codebase Intermediate

ColinLeung-NiloCat

Visit resource ↗

Description

ColinLeung-NiloCat's UnityURP-SurfaceShaderSolution on GitHub brings surface-shader workflows to Unity URP, which dropped Built-in pragma surface blocks. You define surface output; shared HLSL handles lighting.

Shaders are plain .shader and HLSL, SRP Batcher compatible, with no C# codegen. Edit geometry and surface callbacks, pick a lighting include (PBR, cel PBR, or custom), and optionally add postprocess or extra passes. DepthOnly and ShadowCaster are included.

For intermediate authors who want code-first control beyond Shader Graph without writing a full forward lit shader each time. URP includes and PBR surface fields are assumed.

Copy Assets/NiloCat/NiloURPSurfaceShader into your URP project and adapt NiloURPSurfaceShader_Example.shader. The README notes early WIP status.

Modest GitHub traction; appears in URP migration notes between Shader Graph and hand-written lit code.