MOS
|
Camera for environment rendering. More...
#include <cube_camera.hpp>
Public Member Functions | |
Cube_camera (const glm::vec3 &position=glm::vec3(0.0f, 0.0f, 1.25f), float near=0.1f, float far=100.0f) | |
auto | position () const -> glm::vec3 |
auto | position (const glm::vec3 &position) -> void |
Set position. More... | |
auto | near_far (float near, float far) -> void |
Set near and far planes. More... | |
Public Attributes | |
std::array< Camera, 6 > | cameras |
Cameras for eac axis. More... | |
Camera for environment rendering.
auto mos::gfx::Cube_camera::near_far | ( | float | near, |
float | far | ||
) | -> void |
Set near and far planes.
auto mos::gfx::Cube_camera::position | ( | const glm::vec3 & | position | ) | -> void |
Set position.
std::array<Camera, 6> mos::gfx::Cube_camera::cameras |
Cameras for eac axis.