perspective()

Lights Camera / Camera

Description

Sets a perspective projection. Simulates natural foreshortening. No args sets default.

Syntax

void perspective() void perspective(float fov, float aspect, float zNear, float zFar)

Parameters

NameTypeDescription
fovfloatfield of view angle in radians
aspectfloatwidth/height ratio
zNearfloatnear clipping plane
zFarfloatfar clipping plane

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...