forked from Dynamitos/Seele
Adding basic depth prepass
This commit is contained in:
1 parent
4a078bd24c
commit
0cf13bcff5
52 files changed
+880
-155
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user