Trying out Unity’s toon rendering (Celtic rendering)

この記事は約5分で読めます。
スポンサーリンク

Things I want to do

Unity has a preview of toon rendering (Celtic rendering) called Unity Toon Shader (UTS), so I’ll try it out.

Toon rendering, Celtic rendering, anime-style rendering, Toon Rendering, Celtic rendering 

スポンサーリンク

Environment

Unity Toon Shader:0.10.2-preview

スポンサーリンク

Using Unity Toon Shader

install

Launch the Package Manager from the Unity menu: Window → Package Manager.

From the ‘+’ in the upper left corner of the Package Manager, select ‘Add package from git URL…’.

Enter ‘com.unity.toonshader’ into the edit box that appears and click Add.

After waiting a while, the following will be displayed, and the installation will be complete.

Material Creation

Shader changes

Create a new material and select it.

Select either ‘Toon’ or ‘Toon (Tessellation)’ for the Shader in the displayed inspector view.

The 3D object has become a single color without any shadows, as shown below.

Before change:

After change:

Shadow settings

Next, in the inspector view, set the 1st Shading in Three Color and Control Map Settings to gray as follows.

The previously single-colored sphere now has a shadow, making it two-colored.

Change the Base Color Step in the Shading Step and Feature Settings of the inspector view.

Increasing the value will increase the area that is shaded.

Base Color Step:0.4

Base Color Step:0.5(default)

Base Color Step:0.6

Displaying Boundaries

The boundary lines will be displayed.

Change the Outline Width in the Outline Settings of the Inspector view. (The default is 0.)

A border has been drawn around the sphere. Increasing the value will make the border thicker.

The difference between ‘Toon’ and ‘Toon (Tessellation)’

As shown above, UTS has two types: ‘Toon’ and ‘Toon (Tessellation)’.

Tessellation is a process that further breaks down polygons, so it may be more computationally intensive than Toon rendering.

https://ja.wikipedia.org/wiki/%E3%83%86%E3%83%83%E3%82%BB%E3%83%AC%E3%83%BC%E3%82%B7%E3%83%A7%E3%83%B3

The advantage seems to be that the polygon subdivision makes the shadow boundaries and borders smoother.

Tone

Toon(Tessellation)

スポンサーリンク

Result

I was able to perform toon rendering using Unity.

Incidentally, the reason the shadows on the floor have a gradient is because the floor material is not toon-rendered.

スポンサーリンク

Websites I used as references

Unity - Manual: Find packages and feature sets
インストール | Unity Toon Shader | 0.8.5-preview

コメント

タイトルとURLをコピーしました