Implement Backface Culling
This commit is contained in:
parent
ce75297105
commit
bf2b169563
@ -20,6 +20,8 @@ public class Renderer {
|
||||
private Matrix4f projectionMatrix;
|
||||
|
||||
public Renderer(StaticShader shader) {
|
||||
GL11.glEnable(GL11.GL_CULL_FACE);
|
||||
GL11.glCullFace(GL11.GL_BACK);
|
||||
createProjectionMatrix();
|
||||
shader.start();
|
||||
shader.loadProjectionMatrix(projectionMatrix);
|
||||
|
Loading…
Reference in New Issue
Block a user