feat: add sky box

This commit is contained in:
2026-03-14 17:05:35 +08:00
parent fd5314a1d1
commit cf423c7db4
7 changed files with 94 additions and 33 deletions

View File

@@ -39,3 +39,7 @@ const glm::mat4 Camera::get_camera_lookat() const{
CUBED_ASSERT_MSG(m_player, "nullptr");
return glm::lookAt(m_camera_pos, m_camera_pos + m_player->get_front(), glm::vec3(0.0f, 1.0f, 0.0f));
}
const glm::vec3& Camera::get_camera_pos() const {
return m_camera_pos;
}