Lighting and Shading demo
This demo implements Lighting and Shading.
You can enable Diffuse Reflection, Specular Reflection, or both. Independently of this, you can choose between the Flat, Gouraud and Phong shading models. Finally, you can choose whether to use vertex normals from the model, or the normals of each triangle.
Lighting model |
|
Shading model |
|
Normals |
|