Unity3D cube outline toon shader solution

facebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Quickly, we’ll go through a Unity3D cube outline toon shader solution:

It can be pretty annoying to get this working, but one solution is to import your cube (or other sharp-angled object), and select the model file in the Assets folder / Project Panel.

In the Inspector, click the Model tab and change Normals to Calculate, and the Smoothing Angle to something like 90 (possibly higher). Then click Apply, and check the results.

Below is an example of possible settings:

toonSettings

These are the results I got for a cube:

toonShadedCube
More complex objects won’t necessarily need this smoothing in order to work with the Toon Outline shader, but objects with sharp angles will.

5 Comments

  1. Pingback: Unity3D cube outline toon shader fix | VISUALS+CODE

  2. I truly appreciate this post. I’ve been looking all over for this! Thank goodness I found it on Bing. You have made my day! Thank you again!

  3. Thanks for helping out, good info.

  4. I too was pulling my hair out for a solution to this!

    Thank you!

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">