ADD: Enable Backface Culling
This commit is contained in:
parent
b1111d339e
commit
dbc61d2e64
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user