Skip to content

Commit 678b6ba

Browse files
disable culling (but use a define)
1 parent dd2ee23 commit 678b6ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/renderer.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include <iomanip>
2727

2828
#define SHADOWS_ENABLED true
29+
#define DISABLE_CULLING true
2930

3031
float HEIGHT = SCREEN_HEIGHT / SCREEN_WIDTH / 2.0;
3132
float MAX_LIGHTS = 5;
@@ -677,6 +678,9 @@ Renderer::renderModels(RenderPerspective perspective)
677678
int count = 0;
678679
for (auto [entity, p, m] : modelView.each()) {
679680
bool shouldDraw = systems::isOnFrustum(registry, entity, frustum);
681+
if(DISABLE_CULLING) {
682+
shouldDraw = true;
683+
}
680684
if (!shouldDraw) {
681685
continue;
682686
}

0 commit comments

Comments
 (0)