We got a skybox
This commit is contained in:
@@ -70,8 +70,8 @@ void Camera::Update(float deltaTime) {
|
||||
if (input.IsKeyDown(SDL_SCANCODE_S)) move -= m_forward;
|
||||
if (input.IsKeyDown(SDL_SCANCODE_D)) move += m_right;
|
||||
if (input.IsKeyDown(SDL_SCANCODE_A)) move -= m_right;
|
||||
if (input.IsKeyDown(SDL_SCANCODE_Q)) move += glm::vec3(0, 1, 0); // Absolute Up
|
||||
if (input.IsKeyDown(SDL_SCANCODE_E)) move -= glm::vec3(0, 1, 0); // Absolute Down
|
||||
if (input.IsKeyDown(SDL_SCANCODE_E)) move += glm::vec3(0, 1, 0); // Absolute Up
|
||||
if (input.IsKeyDown(SDL_SCANCODE_Q)) move -= glm::vec3(0, 1, 0); // Absolute Down
|
||||
|
||||
if (glm::length2(move) > 0.0f) {
|
||||
m_position += glm::normalize(move) * (moveSpeed * deltaTime);
|
||||
|
||||
Reference in New Issue
Block a user