Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

glFrustum multiplies the current matrix by a perspective matrix.

Parameter Description
left Coordinates for left vertical clipping plane
right Coordinates for right vertical clipping plane
bottom Coordinate for bottom horizontal clipping plane
top Coordinate for top horizontal clipping plane
nearVal Distances to near depth clipping plane (>0)
farVal Distances to far depth clipping planes (>0)

Example

Example 1: From DemoCube's custom rendering function

(glFrustum -1.0 1.0 -1.0 1.0 1.5 20.0)
Clone this wiki locally