rt backface culling
This commit is contained in:
@@ -38,6 +38,7 @@ int main(int argc, char** argv) {
|
||||
graphics->init(initializer);
|
||||
StaticMeshVertexData* vd = StaticMeshVertexData::getInstance();
|
||||
vd->init(graphics);
|
||||
getGlobals().useRayTracing = true;
|
||||
|
||||
OWindowManager windowManager = new WindowManager();
|
||||
AssetRegistry::init("Assets", graphics);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "PlayView.h"
|
||||
#include "Window/Window.h"
|
||||
#include "Component/Mesh.h"
|
||||
#include "Window/Window.h"
|
||||
|
||||
using namespace Seele;
|
||||
using namespace Seele::Editor;
|
||||
@@ -49,4 +49,6 @@ void PlayView::keyCallback(KeyCode code, InputAction action, KeyModifier modifie
|
||||
if (code == KeyCode::KEY_R && action == InputAction::RELEASE) {
|
||||
getGlobals().useRayTracing = !getGlobals().useRayTracing;
|
||||
}
|
||||
//if (code == KeyCode::KEY_B && action == InputAction::RELEASE && modifier & KeyModifier::MOD_CONTROL) {
|
||||
//}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "GameInterface.h"
|
||||
#include "Windows.h"
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
#include "Game.h"
|
||||
#define NOIME
|
||||
#include "Windows.h"
|
||||
|
||||
namespace Seele {
|
||||
|
||||
Reference in New Issue
Block a user