CS 3110--WebGL Example 7

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

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 Phong 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