Function Camera.setPerspective
Sets the camera projection to perspective mode (see constant PROJECTION_PERSPECTIVE
), by specifying a fov
(field of view) angle in degrees, and the z_near
and z_far
clip planes in world-space units.
void setPerspective
(
const(double) fov,
const(double) z_near,
const(double) z_far
) nothrow @nogc;