- Pan mouse to rotate camera.
- Scroll mouse to zoom in/out.
- Flat shading use normals per face. Phong shading use normals per vertex. Phong shading uses vertex normal as its own position (since its position is normalized, outward from the center of the sphere), therefore it can be drawn with indexing and more efficient (switch the shading type to see the difference of used vertices and indices count).
Dependencies can be fetched using vcpkg included in the project files. CMake is used for build system.
git clone https://github.com/stripe2933/icosphere.git
cd icosphere
mkdir build
cd build
cmake ..
cmake --build .