More Refactoring

This commit is contained in:
Dynamitos committed 2023-11-15 17:42:57 +01:00
1 parent f8f48352a3
commit 35966cb5b7
60 files changed
+1217 -2332

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ LightEnvironment::LightEnvironment(Gfx::PGraphics graphics)
.size = sizeof(Component::DirectionalLight) * MAX_DIRECTIONAL_LIGHTS,
.data = nullptr,
},
.stride = sizeof(Component::DirectionalLight),
.numElements = MAX_DIRECTIONAL_LIGHTS,
.dynamic = true,
});
pointLights = graphics->createShaderBuffer(ShaderBufferCreateInfo{
@@ -31,7 +31,7 @@ LightEnvironment::LightEnvironment(Gfx::PGraphics graphics)
.size = sizeof(Component::PointLight) * MAX_POINT_LIGHTS,
.data = nullptr,
},
.stride = sizeof(Component::PointLight),
.numElements = MAX_POINT_LIGHTS,
.dynamic = true,
});
}