ADD: Enable Backface Culling

This commit is contained in:
sebastian 2026-02-08 07:48:13 +01:00
parent b1111d339e
commit dbc61d2e64

View File

@ -18,6 +18,9 @@ class Camera;
class Renderer { class Renderer {
public: public:
Renderer() : projectionMatrix(createProjectionMatrix()) { Renderer() : projectionMatrix(createProjectionMatrix()) {
glEnable(GL_CULL_FACE);
glCullFace(GL_BACK);
staticShader.start(); staticShader.start();
staticShader.loadProjectionMatrix(projectionMatrix); staticShader.loadProjectionMatrix(projectionMatrix);
staticShader.stop(); staticShader.stop();