September 2018
Intermediate to advanced
472 pages
15h 36m
English
As with the previous recipes, provide the vertex position at attribute location 0 and the vertex normal at attribute location 1. Uniform variables for all of the Phong coefficients should be set from the OpenGL side, as well as the light position and the standard matrices.
We'll assume that, in the OpenGL application, the programHandle variable contains the handle to the shader program object.
Read now
Unlock full access