A perspective projection demo.

Please use a browser that supports "canvas" Please use a browser that supports "canvas"
Manipulate the parameters of the createFrustum(left,right,bottom,top,near,far) function:

X axis: -5.0 to 5.0 Y axis: -5.0 to 5.0 Z axis: 1.0 to 10.0
left :
-5.0 5.0
| bottom :
| -5.0 5.0
| near :
| 0.1 10.0
right:
-5.0 5.0
| top:
| -5.0 5.0
| far:
| 2.0 20.0
Change canvas size to match aspect ratio.