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.
Final shader network
- Start off by connecting a Utility shader to the Specular Weight of a Standard Surface shader. The shade mode is set to ndoteye which provides the basic rim shading effect. However, the effect needs to be reversed.
A Complement shader is inserted before the Utility shader to invert the ndoteye effect of the Utility shader.
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.
Adjusting the Specular Color can also give different effects.
Thanks to sample and hold for the use of the toy scan model.