This package provides a comprehensive solution for creating toon ramp effects in Unity, catering to different rendering pipelines. It includes 9 shaders, divided into 3 variants for each of SRP, URP, and HDRP. Each variant offers a unique toon ramp effect, with options for customization through shader parameters.
The package includes:
- Toon Shader: Optimized for mobile games, reacts to directional light, casts shadows, and supports GPU instancing.
- Toon Shader PBR: A standard surface shader with toon shading logics, supports casted and received shadows, GPU instancing, smoothness, and metallic.
- Toon Shader Normal: A standard surface shader with custom lighting function, supports normal maps, and is similar to Toon Shader PBR.
The shaders are designed to provide a distinct toon ramp effect for each pipeline, allowing you to choose the one that best suits your project's needs.
The SRP versions are written in GLSL, while the URP and HDRP versions are created using Shader Graph.
For more information, please refer to the documentation.
Shader Parameters:
- Albedo
- Normal Map (for Toon Shader Normal variant)
- Toon Ramp Range (for each slice of the toon ramp effect)
- Toon Ramp Color (for each slice of the toon ramp effect)
- Rim Color
- Rim Smoothness
- Specular Color
- Specular Smoothness
- Smoothness (for Toon Shader Normal and Toon Shader PBR)
- Metallic (for Toon Shader Normal and Toon Shader PBR)





