camera()
Lights Camera / CameraDescription
Sets the position of the camera by defining the eye position, center of the scene, and up direction.
Syntax
void camera()
void camera(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ)
Parameters
| Name | Type | Description |
|---|---|---|
| eyeX/Y/Z | float | position of the camera eye |
| centerX/Y/Z | float | center of the scene |
| upX/Y/Z | float | up direction vector |
Returns
voidRelated
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...