forked from Dynamitos/Seele
Reworking shader compilation to not need reflection
This commit is contained in:
1 parent
facbfed79c
commit
79388bf41a
15 files changed
+330
-4
No files matched your search
@@ -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()
|
||||
{
|
||||
}
|
||||
Reference in new issue
Block a user