A toon shader compatible with the Universal Render Pipeline.
β οΈ The repository is no longer actively maintained.π The techniques from this project are the foundation of Toon RP, a custom Scripable Render Pipeline designed for stylized rendering.
Developed and verified with Unity 2021.3.0f1 LTS and URP package v12.1.6.
- Toon Shader Capabilities
- Toon Shader (Lite) Capabilities
- Inverted Hull Outline
- Installation
- Getting Started
- Documentation
- Examples
- Performance Benchmark
- Used Assets
- Opaque/Transparent with blending modes:
- Alpha/Premultiply/Additive/Multiply
- Alpha Clipping
- Culling
- Back/Front/Off
- 2 or 3-step ramp with configurable thresholds and smoothness
- Ramp textures
- Normal Maps
- Main light
- Additional lights
- per-vertex or per-pixel, depending on URP settings
- optional specular highlights
- shadows
- Casting and receiving shadows
- Configurable shadow color (both in multiplicative and "pure" modes)
- Emission
- Rim lighting (Fresnel effect) and specular highlights with HDR color support (e.g. for bloom)
- Anisotropic specular (e.g. for hair)
- Environment reflections and Reflection Probes
- Fog
- SSAO
- Environment Lighting
- Baked lights and shadows
- Dynamically receive via light probes
- Contribute to bake process ("meta" pass)
- Vertex Color
- Screen-Space Shadows
- SRP Batcher compatibility
- GPU Instancing
Only Forward rendering path is supported.
- 2-step ramp with configurable threshold and smoothness
- Main light (per-vertex or per-pixel)
- Casting shadows
- Configurable shadow color
- Fog
- Vertex Color
- SRP Batcher compatibility
- GPU Instancing
Only Forward rendering path is supported.
A simple and performant outline shader. Renders outlines of objects on certain layers via a Renderer Feature.
See the Outline Wiki page for details.
For the latest version (Unity compatibility is specified here):
- Open Package Manager through Window/Package Manager
- Click "+" and choose "Add package from git URL..."
- Insert the URL:
https://github.com/Delt06/urp-toon-shader.git?path=Packages/com.deltation.toon-shader
Add the following line to Packages/manifest.json
:
"com.deltation.toon-shader": "https://github.com/Delt06/urp-toon-shader.git?path=Packages/com.deltation.toon-shader",
If you want to explicitly specify a Unity version, you should use a URL of the following form:
https://github.com/Delt06/urp-toon-shader.git?path=Packages/com.deltation.toon-shader#<UNITY-VERSION>
where <UNITY-VERSION>
may be either of the following:
2021.3
2020.3
By default, the shader is updated only for LTS versions of Unity.
- Ensure URP is installed (see the official instructions).
- Create a new material, select
DELTation/Toon Shader
in the shader menu. - For more details on the shader parameters, see the Forest Demo Breakdown Wiki page.
Released Games
- UnityFx.Outline
- Animated Mech Pack by Quaternius
- RPG Character Pack by Quaternius
- Environment Pack: Free Forest Sample by Supercyan
- Character Pack: Free Sample by Supercyan
- The Free Medieval and War Props by Inguz Media
- Stone by Vsify
- Hair Shader 1.0 by RRFreelance / PiXelBurner
- Toony Tiny City Demo by Marcelo Barrio
- Anime Character : Arisa by ζ΄ζ°ΈηΏ Dai Yong Xiang