ADD: Enable Backface Culling
This commit is contained in:
parent
b1111d339e
commit
dbc61d2e64
@ -18,6 +18,9 @@ class Camera;
|
||||
class Renderer {
|
||||
public:
|
||||
Renderer() : projectionMatrix(createProjectionMatrix()) {
|
||||
glEnable(GL_CULL_FACE);
|
||||
glCullFace(GL_BACK);
|
||||
|
||||
staticShader.start();
|
||||
staticShader.loadProjectionMatrix(projectionMatrix);
|
||||
staticShader.stop();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user