CPSC362A
Video Game Development

Activity 10

Materials

Create an OpengGL program that illustrates 2 compoenents of the Phong reflection model.

Details

  1. The program should draw a single star, centered in the window, slowly rotating about the y axis.

  2. The star should be drawn using a single white light behind the camera.

  3. The user should be able to change the reflectivity of the star using the mouse.

    1. Moving the mouse left and right should change the ambient reflectivity of the star.

    2. Moving the mouse up and down should change the diffuse reflectivity of the star.

Example