frustum()

Lights Camera / Camera

Description

Sets a perspective matrix as defined by the parameters. An off-axis frustum.

Syntax

void frustum(float left, float right, float bottom, float top, float near, float far)

Parameters

NameTypeDescription
leftfloatleft coordinate of the clipping plane
rightfloatright coordinate
bottomfloatbottom coordinate
topfloattop coordinate
nearfloatnear z-plane
farfloatfar z-plane

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...