Added Screen space reflections and Editor UI refactoring
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "../Core/Input.h"
|
||||
#include <GLFW/glfw3.h>
|
||||
#include <glm/trigonometric.hpp>
|
||||
#include "src/Core/Logger.h"
|
||||
|
||||
namespace Nuake
|
||||
{
|
||||
@@ -99,4 +100,13 @@ namespace Nuake
|
||||
Direction = glm::normalize(Direction);
|
||||
Right = glm::normalize(glm::cross(Up, Direction));
|
||||
}
|
||||
Ref<EditorCamera> EditorCamera::Copy()
|
||||
{
|
||||
Ref<EditorCamera> copy = CreateRef<EditorCamera>();
|
||||
copy->Translation = this->Translation;
|
||||
copy->Yaw = this->Yaw;
|
||||
copy->Pitch = this->Pitch;
|
||||
|
||||
return copy;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user