< Cg Programming
The Phong reflection model (see the Wikipedia article) is an illumination model that can be computed very efficiently. A variant of it (the Blinn–Phong reflection model, see Wikipedia article) is implemented in the fixed-function versions of OpenGL, in OpenGL ES 1.x and Direct3D 7.x.
Unless stated otherwise, all example source code on this page is granted to the public domain.
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.