Reworking shader compilation to not need reflection

This commit is contained in:
Dynamitos committed 2020-09-30 13:48:41 +02:00
1 parent facbfed79c
commit 79388bf41a
15 files changed
+330 -4

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#include "CameraActor.h"
#include "Scene/Components/Component.h"
#include "Scene/Components/CameraComponent.h"
using namespace Seele;
CameraActor::CameraActor()
{
sceneComponent = new Component();
setRootComponent(sceneComponent);
cameraComponent = new CameraComponent();
cameraComponent->fieldOfView = 70.0f;
cameraComponent->aspectRatio = 1.777778f;
cameraComponent->setParent(sceneComponent);
cameraComponent->setOwner(this);
}
CameraActor::~CameraActor()
{
}