Adding basic depth prepass
This commit is contained in:
@@ -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