Compare commits

..

2 Commits

Author SHA1 Message Date
PeytonPlayz595
6890c01802 Compile 2024-08-06 09:17:14 -04:00
PeytonPlayz595
16ba9b7c58 fix some things 2024-08-06 03:15:07 -04:00
8 changed files with 23590 additions and 23316 deletions

File diff suppressed because it is too large Load Diff

View File

@ -194,6 +194,9 @@ public class Minecraft implements Runnable {
this.checkGLError("Post startup");
this.ingameGUI = new GuiIngame(this);
GL11.anisotropicPatch(GL11.EaglerAdapterImpl2.glNeedsAnisotropicFix());
this.displayGuiScreen(new GuiMainMenu());
}

View File

@ -8,7 +8,14 @@ public class ClippingHelper {
public boolean isBoxInFrustum(double var1, double var3, double var5, double var7, double var9, double var11) {
for (int var13 = 0; var13 < 6; ++var13) {
if((double)this.frustum[var13][0] * var1 + (double)this.frustum[var13][1] * var3 + (double)this.frustum[var13][2] * var5 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * var7 + (double)this.frustum[var13][1] * var3 + (double)this.frustum[var13][2] * var5 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * var1 + (double)this.frustum[var13][1] * var9 + (double)this.frustum[var13][2] * var5 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * var7 + (double)this.frustum[var13][1] * var9 + (double)this.frustum[var13][2] * var5 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * var1 + (double)this.frustum[var13][1] * var3 + (double)this.frustum[var13][2] * var11 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * var7 + (double)this.frustum[var13][1] * var3 + (double)this.frustum[var13][2] * var11 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * var1 + (double)this.frustum[var13][1] * var9 + (double)this.frustum[var13][2] * var11 + (double)this.frustum[var13][3] <= 0.0D && (double)this.frustum[var13][0] * var7 + (double)this.frustum[var13][1] * var9 + (double)this.frustum[var13][2] * var11 + (double)this.frustum[var13][3] <= 0.0D) {
if ((double) this.frustum[var13][0] * var1 + (double) this.frustum[var13][1] * var3 + (double) this.frustum[var13][2] * var5 + (double) this.frustum[var13][3] <= 0.0D
&& (double) this.frustum[var13][0] * var7 + (double) this.frustum[var13][1] * var3 + (double) this.frustum[var13][2] * var5 + (double) this.frustum[var13][3] <= 0.0D
&& (double) this.frustum[var13][0] * var1 + (double) this.frustum[var13][1] * var9 + (double) this.frustum[var13][2] * var5 + (double) this.frustum[var13][3] <= 0.0D
&& (double) this.frustum[var13][0] * var7 + (double) this.frustum[var13][1] * var9 + (double) this.frustum[var13][2] * var5 + (double) this.frustum[var13][3] <= 0.0D
&& (double) this.frustum[var13][0] * var1 + (double) this.frustum[var13][1] * var3 + (double) this.frustum[var13][2] * var11 + (double) this.frustum[var13][3] <= 0.0D
&& (double) this.frustum[var13][0] * var7 + (double) this.frustum[var13][1] * var3 + (double) this.frustum[var13][2] * var11 + (double) this.frustum[var13][3] <= 0.0D
&& (double) this.frustum[var13][0] * var1 + (double) this.frustum[var13][1] * var9 + (double) this.frustum[var13][2] * var11 + (double) this.frustum[var13][3] <= 0.0D
&& (double) this.frustum[var13][0] * var7 + (double) this.frustum[var13][1] * var9 + (double) this.frustum[var13][2] * var11 + (double) this.frustum[var13][3] <= 0.0D) {
return false;
}
}

View File

@ -17,6 +17,7 @@ public class RenderHelper {
GL11.glEnable(GL11.GL_COLOR_MATERIAL);
GL11.glColorMaterial(GL11.GL_FRONT_AND_BACK, GL11.GL_AMBIENT_AND_DIFFUSE);
GL11.copyModelToLightMatrix2();
//GL11.flipSecondLightMatrix();
GL11.flipBothLightMatrix();
}
}

View File

@ -94,6 +94,7 @@ public class WorldRenderer {
this.tileEntityRenderers.clear();
byte var8 = 1;
ChunkCache var9 = new ChunkCache(this.worldObj, var1 - var8, var2 - var8, var3 - var8, var4 + var8, var5 + var8, var6 + var8);
GL11.hintAnisotropicFix(true);
RenderBlocks var10 = new RenderBlocks(var9);
for(int var11 = 0; var11 < 2; ++var11) {
@ -149,6 +150,8 @@ public class WorldRenderer {
}
}
GL11.hintAnisotropicFix(false);
HashSet var22 = new HashSet();
var22.addAll(this.tileEntityRenderers);
var22.removeAll(var21);

View File

@ -1581,7 +1581,7 @@ public class GL11 implements JSObject {
public static final boolean glGetQueryResultAvailable(int obj) {
QueryGL q = queryObjs.get(obj);
return _wglGetQueryObjecti(q, _wGL_QUERY_RESULT_AVAILABLE) >= 0;
return _wglGetQueryObjecti(q, _wGL_QUERY_RESULT_AVAILABLE) > 0;
}
public static final void glGetQueryResult(int in, IntBuffer out) {

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long