- Home /
How to make toon (cel) shader with 3 colors?
How to make toon (cel) shader with 3 colors in Unity 5? Help me pleas.
Answer by Bodhid · Aug 28, 2017 at 03:52 PM
Create a custom lighting model https://docs.unity3d.com/Manual/SL-SurfaceShaderLightingExamples.html
In the example you will see c.rgb = s.Albedo * _LightColor0.rgb * (NdotL * atten);
Your per-pixel light value will be NdotL * atten
(dot product + shadows)
If you only want only 3 shades of light, you could change it to this: round(saturate(NdotL * atten)*3)/3
That will create this effect:
Thanks. How make black outline? In this screenshot I seeing black outline, but I haven't it on my model.
Your answer
Follow this Question
Related Questions
Help combining Cutout + Toon Shader 1 Answer
Unity 5: can you make a toon shader using the Standard Shader? 2 Answers
Problem with Binars Lunar's Cel/Toon Shader 0 Answers
export material shader setting from blender to unity 0 Answers
Is it possible to make the new standard shader act like a toon shader? 1 Answer