CS 3110--WebGL Example 6

Oops ... your browser doesn't support the HTML5 canvas element

Use 1, 2, or 3 for different camera angles.

This example uses attributes for each vertex's position and normal. A uniform variable is used for the colour of the pyramid.
The shader is a Gouraud Shader with one light source. Uniform variables are used to position the light and set up the lighting and material parameters.

OpenGL Shader Variables

Code Attribution