2025-11-04 18:50:59 +03:30
|
|
|
export module camera.components;
|
2026-01-20 09:58:35 +03:30
|
|
|
|
|
|
|
|
import preliminary;
|
2025-11-30 09:46:48 +03:30
|
|
|
import math.vec4;
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2026-01-20 09:58:35 +03:30
|
|
|
export namespace lt::camera::components {
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2026-01-20 09:58:35 +03:30
|
|
|
struct PerspectiveCamera
|
2025-10-26 06:56:18 +00:00
|
|
|
{
|
2026-01-20 09:58:35 +03:30
|
|
|
f32 vertical_fov {};
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2026-01-20 09:58:35 +03:30
|
|
|
f32 near_plane {};
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2026-01-20 09:58:35 +03:30
|
|
|
f32 far_plane {};
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2026-01-20 09:58:35 +03:30
|
|
|
f32 aspect_ratio {};
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2025-11-30 09:46:48 +03:30
|
|
|
math::vec4 background_color;
|
2025-10-26 06:56:18 +00:00
|
|
|
|
|
|
|
|
bool is_primary {};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace lt::camera::components
|