Experiment with Shadows

Virtual World  Shadows Rendering
Please use a browser that supports "canvas"   Please use a browser that supports "canvas"
camera eye (0.0, 0.0, 5.0) camera center (0.0, 0.0, 0.0)
X: -5.0 +5.0 X: -5.0 +5.0
Y: -5.0 +5.0 Y: -5.0 +5.0
Z: -5.0 +5.0 Z: -5.0 +5.0

Use orthographic projection
Use perspective projection
perspective(fovy, aspect, near, far)
fovy: 45 5.0 179.0
aspect: 1.0 0.1 5.0
near : 1.0 0.1 10.0
far : 10.0 2.0 20.0
Light is on? (Rendered in red)
light 0 position(3.0, 0.0, 5.0) light 0 color (1.00, 1.00, 1.00)
X: -5.0 +5.0 Red: 0.0 1.0
Y: -5.0 +5.0 Green: 0.0 1.0
Z: -5.0 +5.0 Blue: 0.0 1.0

Use orthographic projection
Use perspective projection
left: -2.0 -5.0 5.0 right: 2.0 -5.0 5.0
bottom: -2.0 -5.0 5.0 top: 2.0 -5.0 5.0
near: 1.0 -5.0 15.0 far: 10.0 -5.0 15.0
Light is on? (Rendered in green)
light 1 position(-3.0, 0.0, 5.0) light 1 color (1.00, 1.00, 1.00)
X: -5.0 +5.0 Red: 0.0 1.0
Y: -5.0 +5.0 Green: 0.0 1.0
Z: -5.0 +5.0 Blue: 0.0 1.0

Use orthographic projection
Use perspective projection
left: -2.0 -5.0 5.0 right: 2.0 -5.0 5.0
bottom: -2.0 -5.0 5.0 top: 2.0 -5.0 5.0
near: 1.0 -5.0 15.0 far: 10.0 -5.0 15.0
ambient intensities
(0.30, 0.30, 0.30)
attenuation
1.0/(1.0 + 0.10*d + 0.00*d^2)
Red: 0.0 1.0 c1: 0.0 3.0
Green: 0.0 1.0 c2: 0.0 3.0
Blue: 0.0 1.0
Change all intensities at once.
Render which model? Three planes.
Cubes along axes.
shininess = 30.0
0.1 128.0
Display the shadow maps.
(The darker the intensity, the closer the surface.)
Shadow map for light 0
Shadow map for light 1
Select the resolution of the shadow maps: 64x64
128x128
256x256
512x512
1024x1024
Tolerance for z depth comparisons +/-: 0.0000100 0.0 0.0000100