Skip to content

pgxppp/com.unity.toonshader

Repository files navigation

【Unity Toon Shader (Unity-Chan Toon Shader 3)】


Read this document in other languages: 日本語版

【Overview : What is Unity Toon Shader?】

Unity Toon Shader (UTS3) is a toon shader for images and video that is designed to meet the needs of creators working on cel-shaded 3DCG animations. Unlike other pre-render toon shaders, all features can be adjusted in real time on Unity, which is the greatest feature of Unity Toon Shader.

Unity Toon Shader has great power and makes a wide variety of character designs possible, from cel-shaded to light novel illustration styles.

Unity Toon Shader has the 3 basic layers of Base Color1st Shade Color, and 2nd Shade Color, colors and textures can also accept a wide variety of customization options, such as High ColorRim LightMatCap (sphere mapping), and Emissive (light emission).

What colors will you select as accent colors? The accent color is the color which is set at the opposite side of light direction.

In Unity Toon Shader, you can use 2nd shade color and Ap-RimLight as accent color. Of course, these accent colors also change dynamically to the light.

The level of gradation (feather) between colors can also be adjusted in Unity in real-time.

In animation production, color design is made for each part in each scene unit. It is common to have specialists who make these color designs. Unity Toon Shader is suitable for such pipelines.

In Animation movies, shadows are used not only to represent light directions but also to clarify shapes of characters. It’s not just shadow, but a vital part of character design.

For this purpose, Unity Toon Shader also has 2 options for creating fixed shadows necessary to the design: the Position Map, which assigns a set casting point to each shadow, and the Shading Grade Map, which can adjust shadow intensity based on the lighting. The movie above is a sample of the features of Shading Grade Map and AngelRing.

These two images are comparison between Lit Shader(Standard Shader) and Unity Toon Shader under the same lighting conditions.

Although there is a difference between Photo-realistic and Non-photo-realistic images, you can understand all surface reflections to real-time lights are seen in the same areas. It means Unity Toon Shader can be used as same as Lit Shader(Standard Shader) under various lighting conditions.

Unity Toon Shader is very useful if you want to decorate your game scene with beautiful lightings.

Finally, several techniques have been implemented to beautifully display characters in a variety of lighting environments, thanks to recent feedback from VRChat/Game users.


【Installing Unity Toon Shader】

To install this package, follow the instructions in the Package Manager documentation.

If you installed this package, Unity Toon Shader files are installed into com.unity.toonshader folder under Packages folder in your Unity project.

To get the sample scenes of Unity Toon Shader, download whole project from here.

Each sample project is below.

  • Legacy(built-in) : under UnityToonshader_Project~ folder
  • HDRP : under UnityToonshader_ProjectHDRP~ folder
  • URP : under UnityToonshader_ProjectURP~ folder

The project comes with sample scenes where you can learn various setting examples of Unity Toon Shader.

【Using Unity Toon Shader】

To learn how to use Unity Toon Shader, see Users' Manual.
Users' manual is a document with plentiful knowledge of toon style.
The iteration cycle between reading the manual and using Unity Toon Shader actually is the best way to learn the beautiful toon style.

You can open Users' Manual from the custom inspector English Manual button of Unity Toon Shader, see here.


【Target Environment】

  • Requires Unity 2019.4.21f1 or higher.
  • Unity Toon Shader uses a forward rendering environment. Using a linear color space is recommended. (A gamma color space can also be used, but this tends to strengthen shadow gradiation. For more details, see Linear or Gamma Workflow.)
  • Target Platforms are Windows, MacOS, iOS, Android, PlayStation4, Xbox One, Nintendo Switch. Tessellation version is only supported for environments where DX11/DX12 works properly.

【Package contents】

The following table indicates the directory of Unity Toon Shader:

Folder Location Description
Runtime\Shader Contains Unity Toon Shader files.
Editor Contains Unity Toon Shader Custom Inspector and other utilities.

【License】

Unity Toon Shader is provided under the Unity Companion License for Unity-dependent projects.

Unless expressly provided otherwise, the Software under this license is made available strictly on an “AS IS” BASIS WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. Please review the license for details on these and other terms and conditions.


Be sure to check the manual after installation.
The manual explains how to use Unity Toon Shader in detail.

Please contact us if you have any issues.


【Release History】

The release history of Unity Toon Shader is here.

The release history of UTS2 is here.


README.md 2021/06/04

About

Unity Toon Shader ( an experimental package )

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 79.0%
  • HLSL 10.6%
  • ShaderLab 9.5%
  • Mathematica 0.9%