Exporting to obj because blender format doesnt work
This commit is contained in:
+4
-4
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
#include "Define.h"
|
||||
#include "Seele/MinimalEngine.h"
|
||||
#include <Seele/Actor/Actor.h>
|
||||
#include <Seele/Component/KeyboardInput.h>
|
||||
#include <Seele/Component/Camera.h>
|
||||
#include <MinimalEngine.h>
|
||||
#include <Actor/Actor.h>
|
||||
#include <Component/KeyboardInput.h>
|
||||
#include <Component/Camera.h>
|
||||
|
||||
class FlyCam : public Actor
|
||||
{
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
#pragma once
|
||||
#include "Seele/MinimalEngine.h"
|
||||
#include <MinimalEngine.h>
|
||||
|
||||
using namespace Seele;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "MeshShadingDemoGame.h"
|
||||
#include "Actor/FlyCam.h"
|
||||
#include "Seele/Asset/AssetRegistry.h"
|
||||
#include "Seele/Component/Transform.h"
|
||||
#include "Asset/AssetRegistry.h"
|
||||
#include "Component/Transform.h"
|
||||
#include "System/FlyCamSystem.h"
|
||||
|
||||
MeshShadingDemoGame::MeshShadingDemoGame()
|
||||
@@ -14,8 +14,9 @@ MeshShadingDemoGame::~MeshShadingDemoGame()
|
||||
|
||||
void MeshShadingDemoGame::setupScene(PScene scene, PSystemGraph graph)
|
||||
{
|
||||
cube = new StaticMeshActor(scene, AssetRegistry::findMesh("cube"));
|
||||
//cube = new StaticMeshActor(scene, AssetRegistry::findMesh("cube"));
|
||||
// cube->accessComponent<Component::Transform>().setScale(Vector(50, 50, 50));
|
||||
chapel = new StaticMeshActor(scene, AssetRegistry::findMesh("Whitechapel/Whitechapel"));
|
||||
camera = new FlyCam(scene);
|
||||
light = new DirectionalLightActor(scene, Vector4(1, 1, 1, 1), Vector(0, -1, 0));
|
||||
graph->addSystem(new FlyCamSystem(scene));
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#pragma once
|
||||
#include "Actor/FlyCam.h"
|
||||
#include "Define.h"
|
||||
#include <Seele/Actor/StaticMeshActor.h>
|
||||
#include <Seele/Actor/DirectionalLightActor.h>
|
||||
#include <Seele/Game.h>
|
||||
#include <Actor/StaticMeshActor.h>
|
||||
#include <Actor/DirectionalLightActor.h>
|
||||
#include <Game.h>
|
||||
|
||||
class MESHSHADINGDEMO_API MeshShadingDemoGame : public Game {
|
||||
public:
|
||||
@@ -12,7 +12,8 @@ public:
|
||||
virtual void setupScene(PScene scene, PSystemGraph graph) override;
|
||||
|
||||
private:
|
||||
OStaticMeshActor cube;
|
||||
OStaticMeshActor cube;
|
||||
OStaticMeshActor chapel;
|
||||
OFlyCam camera;
|
||||
ODirectionalLightActor light;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
#include "FlyCamSystem.h"
|
||||
#include "Seele/System/ComponentSystem.h"
|
||||
|
||||
FlyCamSystem::FlyCamSystem(PScene scene)
|
||||
: System::ComponentSystem<Component::KeyboardInput, Component::Camera, Component::Transform>(scene) {}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#pragma once
|
||||
#include "Define.h"
|
||||
#include "Seele/MinimalEngine.h"
|
||||
#include <Seele/Scene/Scene.h>
|
||||
#include <Seele/System/ComponentSystem.h>
|
||||
#include <Seele/Component/Camera.h>
|
||||
#include <Seele/Component/KeyboardInput.h>
|
||||
#include <MinimalEngine.h>
|
||||
#include <Scene/Scene.h>
|
||||
#include <System/ComponentSystem.h>
|
||||
#include <Component/Camera.h>
|
||||
#include <Component/KeyboardInput.h>
|
||||
|
||||
class FlyCamSystem : public System::ComponentSystem<
|
||||
Component::KeyboardInput,
|
||||
|
||||
Reference in New Issue
Block a user