Frustum object, used by Camera2D and Camera3D. More...
Public Member Functions | |
Frustum () | |
Frustum constructor. | |
Vector4 | GetPoint (Vector2 screen_normalized_pos, float z) |
Given a point in normalized screen coordinates (bottom left (-1,1) and upper right (1,1)), and a z value, return the corresponding 3D point in view space. | |
Public Attributes | |
float | Aspect = 1.0f |
Width/Height aspect ratio. | |
float | Znear = 0.1f |
Projection's near z value. | |
float | Zfar = 1000.0f |
Projection's far z value. | |
Properties | |
Matrix4 | Matrix [get] |
The projection as a matrix. | |
float | FovX [get, set] |
Field of view along X axis. | |
float | FovY [get, set] |
Field of view along Y axis. |
float FovX [get, set] |
Field of view along X axis.
If you set the field of view with this property, X becomes the main fov direction for this Frustum, and FovY value's correctness will depend on Aspect's value.
float FovY [get, set] |
Field of view along Y axis.
If you set the field of view with this property, Y becomes the main fov direction for this Frustum, and FovX value's correctness will depend on Aspect's value.