Lighting Applet

This applet allows you to experiment with various parameters of a lighting model. The relevant reading is paragraph 14.2 of Hearn & Baker, especially pages 497-504. A few notes:

Click here for a list of all applets.

For those of you without the book, an explanation of the lighting model parameters:

k_amaterial's ambient coefficient
I_aambient light (R, G and B)
k_dmaterial's diffuse coefficient
I_llight (at crosshair) intensity (R, G and B)
Nsurface normal at point of intersection
Lvector to light from point of intersection
k_smaterial's specular coefficient
Vvector to viewer from point of intersection
Rvector L reflected at point of intersection
n_smaterial's specular reflection parameter



Patrick Min, CS Department, Princeton University
Last modified: Wed Jul 21 03:46:10 EDT 2010