Light Attenuation
This is the light attenuation sketch, you can play with the light’s position by moving your mouse all over the canvas, or changing it’s depth with the 2 and 8 keys on the numpad. If you press the left or the right arrow, you can change the value of the ambient light. This example also uses specular light: If you press g you can switch de type of light.