Adding basic depth prepass

This commit is contained in:
Dynamitos committed 2021-05-06 17:02:10 +02:00
1 parent 4a078bd24c
commit 0cf13bcff5
52 files changed
+880 -155

No files matched your search

+6 -5
View File
@@ -14,16 +14,17 @@ Actor::~Actor()
}
void Actor::tick(float deltaTime)
{
rootComponent->tick(deltaTime);
for(auto child : children)
{
child->tick(deltaTime);
}
addWorldRotation(glm::vec3(0, 1 * deltaTime, 0));
}
void Actor::notifySceneAttach(PScene scene)
{
owningScene = scene;
scene->getSceneUpdater()->registerActorUpdate(this);
rootComponent->notifySceneAttach(scene);
for(auto child : children)
{
child->notifySceneAttach(scene);
}
}
PScene Actor::getScene()