forked from Dynamitos/Seele
First runnable render loop
This commit is contained in:
1 parent
ceee96b462
commit
8d4c43361b
35 files changed
+519
-134
No files matched your search
@@ -33,7 +33,7 @@ void Scene::addActor(PActor actor)
|
||||
void Scene::addPrimitiveComponent(PPrimitiveComponent comp)
|
||||
{
|
||||
primitives.add(comp);
|
||||
for(auto batch : comp->staticMeshes)
|
||||
for(auto& batch : comp->staticMeshes)
|
||||
{
|
||||
PrimitiveUniformBuffer data;
|
||||
data.actorWorldPosition = Vector4(comp->getTransform().getPosition(), 1);
|
||||
|
||||
Reference in new issue
Block a user