Rim Shader

Tip: The facing_ratio shader can also be used to achieve this shading effect.

A rim shader is useful for achieving a lighting effect related to the contour/outline edges of an object. The above scene demonstrates a simple shader that simulates a fake rim light shading effect. It can be useful for creating fresnel or cartoon-like skin effects.

The shader (R18) can be downloaded here.

The rim shader effect is primarily controlled by connecting utility shader (set to ndoteye) to the specular_weight attribute of a standard_surface shader.

Final shader network

Utility Shader

Complement shader

Color Correct

A color_correct shader can also be added to refine the rim shading effect. The images below show the effect adjusting the gamma attribute has on the rim shading effect.

0.25 0.5 0.75

Specular Color

Adjusting the specular_color can also give different effects.

Specular color: yellow Specular color: black

*Thanks to sample and hold for the use of the toy scan model.*