2025-11-04 18:50:59 +03:30
|
|
|
export module camera.components;
|
2025-11-18 19:06:44 +03:30
|
|
|
import lsd;
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2025-11-18 19:06:44 +03:30
|
|
|
export namespace lt::camera::components {
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2025-11-18 19:06:44 +03:30
|
|
|
struct PerspectiveCamera
|
2025-10-26 06:56:18 +00:00
|
|
|
{
|
2025-11-18 19:06:44 +03:30
|
|
|
f32 vertical_fov {};
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2025-11-18 19:06:44 +03:30
|
|
|
f32 near_plane {};
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2025-11-18 19:06:44 +03:30
|
|
|
f32 far_plane {};
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2025-11-18 19:06:44 +03:30
|
|
|
f32 aspect_ratio {};
|
2025-10-26 06:56:18 +00:00
|
|
|
|
2025-11-18 19:06:44 +03:30
|
|
|
lsd::vec4 background_color;
|
2025-10-26 06:56:18 +00:00
|
|
|
|
|
|
|
|
bool is_primary {};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace lt::camera::components
|