SolarSim
Loading...
Searching...
No Matches
solarsim::CameraComponent Struct Reference

Defines camera properties for rendering and view projection. More...

#include <camera_component.hpp>

Data Fields

float fov = 45.0f
float near = 0.1f
float far = 2000.f
float aspect = 800.0f / 600.0f
bool primary = true

Detailed Description

Defines camera properties for rendering and view projection.

Note
Only one camera should have primary=true at any time
Warning
Inconsistent aspect ratios may cause visual distortion

Field Documentation

◆ aspect

float solarsim::CameraComponent::aspect = 800.0f / 600.0f

Aspect ratio (width/height)

◆ far

float solarsim::CameraComponent::far = 2000.f

Far clipping plane distance

◆ fov

float solarsim::CameraComponent::fov = 45.0f

Field of view in degrees

◆ near

float solarsim::CameraComponent::near = 0.1f

Near clipping plane distance

◆ primary

bool solarsim::CameraComponent::primary = true

Whether this is the primary camera. Only one should be true.


The documentation for this struct was generated from the following file: