PerspectiveCamera
PerspectiveCamera ⟵ Camera ⟵ Object3D
Camera with perspective projection.
This camera creates a perspective projection with configurable field of
view, aspect ratio, and near/far clipping planes. It's the most common
camera type for 3D scenes.
Methods
PerspectiveCamera(f32 fov = 75.0f, f32 aspect = 4.0f/3.0f, f32 near = 0.1f, f32 far = 1000.0f)
Constructor with perspective parameters
| fov | Field of view in degrees | |
| aspect | Aspect ratio (width/height) | |
| near | Near clipping plane | |
| far | Far clipping plane |
virtual PerspectiveCamera* clone(bool recursive = true) const override
Creates a copy of this camera
| recursive | Whether to clone descendants as well |
virtual void copy(const Object3D& object, bool recursive = true) override
Copies properties from another object
| object | Source object to copy from | |
| recursive | Whether to copy descendants as well |
virtual void updateProjectionMatrix() override
Updates the projection matrix with current camera parameters
Properties
| aspect | f32 | Aspect ratio (width/height) |
| far | f32 | Far clipping plane |
| fov | f32 | Field of view in degrees |
| near | f32 | Near clipping plane |