A perspective projection demo.
Please use a browser that supports "canvas"
Please use a browser that supports "canvas"
Manipulate the parameters of the
createPerspective(fovy,aspect,near,far)
function:
fovy : 5.0
179
Field-of-view (y axis) =
45
degrees
aspect : 0.1
5.0
aspect =
1.00
(width/height)
Change canvas size to match aspect ratio.
near : 0.1
10.0
near =
1.0
far : 2.0
20.0
far =
10.0
Reset Projection