Skip to content

Commit

Permalink
fix depth stencil
Browse files Browse the repository at this point in the history
  • Loading branch information
ferriarnus committed Mar 27, 2024
1 parent 79404be commit 1c67f6d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.lwjgl.opengl.GL11C;

import static org.lwjgl.opengl.ARBComputeShader.glDispatchCompute;
import static org.lwjgl.opengl.ARBDepthBufferFloat.GL_DEPTH32F_STENCIL8;
import static org.lwjgl.opengl.ARBFramebufferObject.*;
import static org.lwjgl.opengl.ARBShaderImageLoadStore.glBindImageTexture;
import static org.lwjgl.opengl.GL11.*;
Expand Down Expand Up @@ -65,7 +66,7 @@ public void setSize(int width, int height) {

this.colour = new GlTexture().store(GL_RGBA8, 1, width, height);
this.colourSSAO = new GlTexture().store(GL_RGBA8, 1, width, height);
this.depthStencil = new GlTexture().store(GL_DEPTH24_STENCIL8, 1, width, height);
this.depthStencil = new GlTexture().store(GL_DEPTH32F_STENCIL8, 1, width, height); // use instead of GL_DEPTH24_STENCIL8, as GL_DEPTH32F_STENCIL8 is used by forge

glTextureParameterf(this.colour.id, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
glTextureParameterf(this.colour.id, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
Expand Down

0 comments on commit 1c67f6d

Please sign in to comment.