Added instanced drawing to the GBuffer

This commit is contained in:
grayson committed 2021-10-01 14:16:47 -05:00
1 parent ba19742bfe
commit f422d1d138
14 files changed
+63 -179

No files matched your search

+1 -1
View File
@@ -24,7 +24,7 @@ void MainState::onEnter() {
for (int x = 0; x < 10; x++) {
for (int y = 0; y < 10; y++) {
entities.push_back(new nf::Entity);
entities.back()->create(ap["spec.obj"]);
entities.back()->create(ap["2mats.obj"]);
entities.back()->setPosition(5.0 + x * 2.1, 0.05, -5.0 + y * 2.1);
}
}