Ray Tracing doesnt look like shit anymore
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "PlayView.h"
|
||||
#include "Window/Window.h"
|
||||
#include "Component/Mesh.h"
|
||||
|
||||
using namespace Seele;
|
||||
using namespace Seele::Editor;
|
||||
@@ -45,4 +46,7 @@ void PlayView::keyCallback(KeyCode code, InputAction action, KeyModifier modifie
|
||||
std::cout << cam.getCameraPosition() << std::endl;
|
||||
std::cout << tra.getRotation() << std::endl;
|
||||
}
|
||||
if (code == KeyCode::KEY_R && action == InputAction::RELEASE) {
|
||||
getGlobals().useRayTracing = !getGlobals().useRayTracing;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user