mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-22 19:58:34 +01:00
possibly fix a depth issue with particles
This commit is contained in:
parent
26616ce0c2
commit
66aaaaf62c
1 changed files with 1 additions and 1 deletions
|
@ -97,11 +97,11 @@ public final class ParticleHandler {
|
||||||
Tessellator tessy = Tessellator.getInstance();
|
Tessellator tessy = Tessellator.getInstance();
|
||||||
BufferBuilder buffer = tessy.getBuffer();
|
BufferBuilder buffer = tessy.getBuffer();
|
||||||
|
|
||||||
|
RenderSystem.enableDepthTest();
|
||||||
buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
||||||
for (Particle particle : PARTICLES)
|
for (Particle particle : PARTICLES)
|
||||||
particle.renderParticle(buffer, info, partialTicks);
|
particle.renderParticle(buffer, info, partialTicks);
|
||||||
tessy.draw();
|
tessy.draw();
|
||||||
|
|
||||||
RenderSystem.disableDepthTest();
|
RenderSystem.disableDepthTest();
|
||||||
buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
buffer.begin(GL11.GL_QUADS, DefaultVertexFormats.PARTICLE_POSITION_TEX_COLOR_LMAP);
|
||||||
for (Particle particle : PARTICLES_NO_DEPTH)
|
for (Particle particle : PARTICLES_NO_DEPTH)
|
||||||
|
|
Loading…
Reference in a new issue