This pack adds a toon shader with gives you lots of control over the diffuse, specular, and rim lighting applied to your objects so that you can make the stylized cel-shaded game of your dreams!
This asset pack is available as part of my Ultimate Shader Bundle. Get five great assets at a discount!
✨ Toon Shader Features
- Diffuse, Specular, and Rim lighting controls
- Apply one or two lighting cutoff thresholds.
- Extra option to smooth the transition zone.
- Total control over the lit and unlit region tint colors.
- Use Metallic or Specular workflows.
- Add surface details with normal maps.
- Turn receive shadows on and off at will.
- Supports opaque and transparent rendering, with an alpha clip option.
- All the standard shader passes: depth, depth-normals, shadow casting, and lightmapping/meta passes.
- Baked lighting support.
- Decals, light cookies, and rendering layers.
- Terrain toon shader with added support for stochastic texturing to eliminate texture tiling.
- A separate Shader Graph implementation of the Toon shader which you can easily modify to create your own effects.
⚡ Lighting and Rendering Options
- Full support for Forward, Forward+,Deferred, and Deferred+ rendering paths.
- Primary directional light and full additional light support in all rendering paths.
- Override Unity's environmental lighting with a simple slider.
In the deferred path, the toon shader uses UniversalForwardOnly to render in forward mode.
✍ Outline Renderer Feature
- Layer-specific outline rendering for most outline algorithms:
- Specify a layer mask, rendering layer mask, LightMode shader tag, or render queue to only render outlines on some objects!
- Render around individual objects, around every triangle, or around the combined masked objects.
- Optionally use mesh Vertex Colors as the mask seed value.
- New in Unity 6.3+: use a Renderer Shader User Value as your mask seed value.
- Four outline rendering algorithms you can easily swap between in the Renderer Feature interface.
- High-Quality Outlines: configurable thickness, draw inside/outside meshes, edge smoothing options.
- Pixel-Width Outlines: render a thin pixel-width outline around objects.
- Depth-Normals Outlines: detect edges in the scene based on depth and normal vector information.
- Hull Outlines: invert the hull and expand along mesh normals, with transparency option.
- A debug mask option to troubleshoot problems with object masking.
- Supports Render Graph in Unity 6+ and compatibility mode for both Unity 2022.3 and Unity 6.
🎮 Compatible Versions
- Compatible only with Universal Render Pipeline.
- Fully tested in Unity 2022.3, 6.0, 6.1, 6.2, 6.3, and 6.4.
- Designed for desktop use. Support not guaranteed for mobile and console.
- Tested in VR, but the outline rendering is not recommended for standalone VR.
Please note that meshes shown off in promotional screenshots are not included in the package.