O'Reilly logo

OpenGL ES 3.0 Cookbook by Parminder Singh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the per-vertex diffuse light component

Diffuse light comes from a particular direction and is reflected in various directions after collision with the surface of the object. In this section, we model this behavior by using the Phong Reflection Model, which was developed by Bui Tuong Phong in 1973. This model proposed an illumination shading technique that uses a normal surface and the direction of incident light. When light strikes on an object's surface, some of its parts are reflected and the rest is partially absorbed. Therefore, we can calculate either the intensity of light absorbed or reflected, if one of the components is given.

Note

Total light intensity = reflection light intensity + absorption light intensity

When 100 percent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required