Allow the user to turn this light on or off by clicking on the yellow sphere (as opposed to clicking on a toggle button). Note that the yellow sphere is lit only by the directional light. All other objects in the scene are lit by both light sources if the point light source is turned on, otherwise they are lit only by the directional light.
Moving light source. Allow the yellow sphere to be translated. Use the same controls that you used for translating trees in Prog 3. As the yellow sphere is moved around, you should also update the lighting of all the objects in the scene.
Lighting should include both diffuse and specular reflections. The rendering mode can be adjusted as before by cycling through the different options.
Rubric:
You start off with 100 points. You earn additional credit by turning in your assignment early and/or implementing additional features. You lose credit for missing functionality, incorrect results, poorly documented or formatted code, or not following instructions. Below is a partial list: - up to 10 points off for poor features.html file - up to 10 points off for inadequate comments or hard-to-read code - up to 10 points off for not following instructions - up to 10 points off for special handling to grade your homework (usually because you did not check that it runs on the computers in the lab first). - functionality points depending on importance Make sure you: a. submit the right files you want us to grade, b. have tested your code on the browsers in the lab. c. follow the general instructions described in overview.html
Adam Filiz: A - G Alfred Lam: H - M Issei Mori: N - Z
Put materials in a folder named lab3 and zip it up. Submission must be done using Canvas.
Last modified Monday, 04-Nov-2019 15:37:30 PST.