Complete MP 3 by using cubemapping to make the teapot reflect the environment. You should add the following features to your code from part 1:
- A radio button (or similar control) in the HTML that allows the user to switch between simply shading the teapot and making the teapot reflective.
- If the user selects reflective, youe code should render the teapot using a cubemap. The reflection should be consistent with the scene rendered on the skybox.
- Add the capaibility to rotate the teapot. Make sure the image on the teapot changes correctly
Note: When using the environment map to shade the teapot, you do not have to implement Blinn-Phong or Phong illumination.
Submission:
You will upload your files to compass in a zipped folder with name ${NetID}_MP3.zip. Include all of the files necessary for your application to run. Name your webpage Teapot.html
Rubric:
Points | Description |
---|---|
3pts | The teapot surface reflects the environment |
2pts | Teapot rotation works correctly and the image on the teapot changes correctly |
1pt | Your code should be commented and user interface on the webpage should be clear |