Example:
eye 0 100 700

vat 0 0 0
vup 0 1 0
fovy 45
dnear 10
dfar 5000
viewport 0 0 800 800


eye x y z: define the position of the camera.

vat x y z: define the position where the camera looks at.

vup x y z: define the up vector of the camera.

fovy theta: define the fovy angle of the view frustum.

dnear d: define the distance of the near plane from the camera.

dfar d: define the distance of the far plane from the camera.

viewport x y w h: define the position and the size of the view port.

Go to top