possibly fix a depth issue with particles

This commit is contained in:
Ellpeck 2020-03-14 23:00:31 +01:00
parent 26616ce0c2
commit 66aaaaf62c

View file

@ -97,11 +97,11 @@ public final class ParticleHandler {
Tessellator tessy = Tessellator.getInstance();
BufferBuilder buffer = tessy.getBuffer();
RenderSystem.enableDepthTest();
buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
for (Particle particle : PARTICLES)
particle.renderParticle(buffer, info, partialTicks);
tessy.draw();
RenderSystem.disableDepthTest();
buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
for (Particle particle : PARTICLES_NO_DEPTH)