CS 3110--WebGL Example 7

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

0 km/h
Day | Night

Use the arrow keys to drive the car around, and numbers 1 - 5 to change the camera angle.

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