ToonShader

This com­plex toon shader com­bines a 1D ramp with a 2D tex­tured ramp to cre­ate a car­toon look and other non-​​photorealistic effects.
It uses a small image sam­ple as a 2D ramp which allows the artist to sep­a­rate the color of the base shad­ing, specs and rim lights and to vary the smooth­ness of gra­da­tions between these areas.

toonShadertoonShadertoonShadertoonShader

Even though the shader is com­plex and offers much con­trol, the default set­tings and pre­sets are designed to accu­rately mimic var­i­ous car­toon looks. To achieve this, Toon­Shader offers two dif­fer­ent gra­di­ent ramp con­trols, three types of spec­u­lar high­lights, con­trol over trans­parency, ambi­ent occlu­sion, cus­tom shadow col­ors, inci­dence and incan­des­cence and above all allows the artist to man­u­ally adjust the shad­ing locally by paint­ing ver­tex col­ors. It is also pos­si­ble to cre­ate square or split high­lights for accu­rate car­toon effects.
More­over, each effect is imple­mented as an inde­pen­dent layer which can be tog­gled on or off and may be blended using any com­bi­na­tion of more than 20 blend modes.

As such, this ver­sa­tile shader is not only capa­ble of ren­der­ing con­vinc­ing car­toon char­ac­ters but can also be used to ren­der painterly back­ground objects and mattes.

Usage

Toon­Shader was devel­oped to accu­rately sim­u­late the flat look of 2D car­toon or cel ani­ma­tion. It pro­vides two sep­a­rate meth­ods to drive flat or gra­di­ent shad­ing and pro­vides sep­a­rate con­trols of spec­u­lar high­lights. These may be moved, rotated and scaled inde­pen­dently of the light source.