We showed how to set GLSL uniform variables of various types,
including floats, and arrays of vec3, vec4 and mat4,
within Javascript.
Then we implemented a simple version of reflection.
The code for everything we did in class
this week is at:
hw3.zip
Since everything we covered is contained in the code
and in the comments on that code, I will keep this short.
Homework -- due before start of class on Thursday Feb 27
For homework,
create a ray traced scene that uses everything we have
covered so far:
ray tracing to multiple spheres with multiple lights,
phong reflectance,
procedural textures,
and using reflection to turn objects into mirrors.
See if you can use noise-based procedural textures in unusual
ways to create cool visual effects.
Also,
expand on what I did with the slider to
create a Graphic User Interface (GUI)
that allows visitors to your webpage to
control various aspects of the ray traced scene.
Try using various types of HTML input elements,
which you can learn more about
HERE.
Be creative.
Use your imagination.
Impress me.