The most basic NPR shaders
Basic toon shader (Eevee)

How this works:
It takes the grey values from the
diffuse BSDF,Shader to RGBTurns the data (casting in programming speak) into RGB colors. Without this we cannot change the colors using a color ramp,The
Color Ramp noderemaps the grey values to the color you want,Finally outputs it.
Basic shadeless shader (Eevee)
Method 1:

Method 2:

Method 3:

Basic toon shader with texture and alpha (Eevee)

How it works:
This is essentially a masking material.
The texture going into the factor of the
Mix shadernode is a grey value. It determines the mixing factor of shader 1 and shader 2. White color showsShader 2, black color showsShader 1The
difference node(a mix node) compares the original texture tocolor 2(the color we want to remove when texture do not have alpha channel, black if it has alpha).The
less than node(a math node) refines the edges of the mask using the threshold value.The
diffuse BSDF nodecan be exchanged toEmission shaderfor shadeless texture or a more elaborate setup.Remember to change Blend Mode to either
Alpha Clip, Alpha Blend or Alpha Hatch. Which of these Blend mode you choose will depend on your use case.
Last updated
Was this helpful?