Renders 3 models using 4 different shader programs. The models are large
and can take several seconds to load. Be patient!
Animate
Models:
- Cube: 8 vertices, 12 triangles
- Sphere: 134 vertices, 264 triangles
- Dragon: 418,336 vertices, 836,672 triangles
Shader Programs (from left to right):
- Wireframe using gl.LINES
- Uniform color using gl.TRIANGLES and one color.
- "Flat shading" one normal vector per triangle face.
- "Smooth shading" one normal vector per vertex.