← All resources

ColinLeung-NiloCat GitHub - URP Toon Lit Shader Example

Auto-discovered

Library / Codebase Intermediate

ColinLeung-NiloCat

Visit resource ↗

Description

ColinLeung-NiloCat's UnityURPToonLitShaderExample is a free MIT GitHub sample for hand-written toon lit shaders in Unity URP, not the commercial NiloToonURP package. The author kept the code short for Unity 2022.3 LTS and URP 14+.

ShaderLab and HLSL files implement SimpleURPToonLitExample (With Outline): cel lighting in SimpleURPToonLitOutlineExample_LightingEquation.hlsl, outlines, normals, shadows, and DepthOnly or DepthNormalsOnly passes for forward URP.

For intermediate developers preferring code over Shader Graph with basic HLSL. Test with directional, point, or spot lights and light probes on a textured character.

Copy the shader files into one URP folder, pick the material shader, assign _BaseMap, then read the sources. README marketing for NiloToonURP is separate from the tutorial files.

Often cited on GitHub as a minimal URP toon lit starting point.