Toon with outline shader development 01


We are not in a massive rush currently but there’s plenty to do. For now, my task is to focus on three main shaders and mechanism build.

Toon & Outline shader is super hard for me to learn, it includes many math stuff.

I looked up many tutorials, and I got to know there are many ways to create the outline of the object, including scaling up the mesh, edge detection, and post-processing. Also in each method, there are still many approaches.

So I am thinking to have a test in different methods and see which techniques work best for our project.

#1 Hull Outline

a.Unlit Shader

2nd Shader added
On different models

I think the thickness of the outline depends on the model, so I need to adjust it accordingly for each model. Also it doesn’t work well on cube right now, and I’ll look into it in the future.

b.Using Render Feature (Failed)

#2 Edge detection

Test 01
Test 02
Shader Graph

#2 Toon Shader

Failed

It can’t detect the lighting changing.

So I’ve tried a different approach.

It should be like this, but still need to figure out the outline combination.


Leave a Reply

Your email address will not be published. Required fields are marked *