Assignment 3: Lighting and Shading
This homework focused on illumination and shading on terrain meshes. I used index buffers for geometry, computed and transformed normals, added a normal-visualization mode, and implemented per-pixel Phong shading in fragment shaders.
Implemented Results
- Terrain loading from image and BSQ files
- Indexed mesh rendering with averaged per-vertex normals
- Normal coloring mode for debugging
- Phong shading with ambient, diffuse, and specular terms
- Directional and point-light interaction controls
Output Sample
Live Demo
The demo supports the original controls for shading/light interaction. Select a dataset from the dropdown.