OpenGL constants

This commit is contained in:
Sen 2025-03-19 23:31:33 +01:00
parent e2f2417695
commit abc2f6ab50
31 changed files with 179 additions and 362 deletions

View file

@ -1,5 +1,7 @@
package game.renderer.particle;
import org.lwjgl.opengl.GL11;
import game.Game;
import game.entity.Entity;
import game.renderer.DefaultVertexFormats;
@ -52,7 +54,7 @@ public class EntityFootStepFX extends EntityFX
float f6 = this.worldObj.getLightBrightness(new BlockPos(this));
this.currentFootSteps.bindTexture(EffectRenderer.particleTextures);
GlState.enableBlend();
GlState.blendFunc(770, 771);
GlState.blendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);
worldRendererIn.begin(7, DefaultVertexFormats.POSITION_TEX_COLOR);
worldRendererIn.pos((double)(f3 - 0.125F), (double)f4, (double)(f5 + 0.125F)).tex(u1, u3).color(f6, f6, f6, f1).endVertex();
worldRendererIn.pos((double)(f3 + 0.125F), (double)f4, (double)(f5 + 0.125F)).tex(u1, u2).color(f6, f6, f6, f1).endVertex();