Chapter 18. Non-Photorealistic Shaders

A significant amount of computer graphics research has been aimed at achieving more and more realistic renditions of synthetic scenes. A longtime goal has been to render a scene so perfectly that it is indistinguishable from a photograph of the real scene, hence the term PHOTOREALISM. With the latest graphics hardware, some photorealistic effects are becoming possible in real-time rendering.

This quest for realism is also reflected in graphics APIs such as OpenGL. The OpenGL specification defines specific formulas for calculating effects such as illumination from light sources, material properties, and fog. These formulas attempt to define effects as realistically as possible while remaining relatively easy ...

Get OpenGL® Shading Language, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.