perspective()
Lights Camera / CameraDescription
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
| Name | Type | Description |
|---|---|---|
| fov | float | field of view angle in radians |
| aspect | float | width/height ratio |
| zNear | float | near clipping plane |
| zFar | float | far clipping plane |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...