More lighting stuff
This commit is contained in:
parent
7ad874b27a
commit
f6b7cd2b06
|
@ -1,6 +1,6 @@
|
||||||
package net.PeytonPlayz585.math;
|
package net.PeytonPlayz585.math;
|
||||||
|
|
||||||
public final class MathHelper {
|
public class MathHelper {
|
||||||
|
|
||||||
private static float[] SIN_TABLE = new float[4096];
|
private static float[] SIN_TABLE = new float[4096];
|
||||||
|
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
package net.minecraft.src;
|
package net.minecraft.src;
|
||||||
|
|
||||||
public class MathHelper {
|
public class MathHelper {
|
||||||
private static float[] SIN_TABLE = new float[65536];
|
private static float[] SIN_TABLE = new float[4096];
|
||||||
|
|
||||||
public static final float sin(float var0) {
|
public static final float sin(float var0) {
|
||||||
return SIN_TABLE[(int)(var0 * 10430.378F) & '\uffff'];
|
return SIN_TABLE[(int)(var0 * 651.8986F) & 4095];
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final float cos(float var0) {
|
public static final float cos(float var0) {
|
||||||
return SIN_TABLE[(int)(var0 * 10430.378F + 16384.0F) & '\uffff'];
|
return SIN_TABLE[(int)((var0 + ((float)Math.PI / 2F)) * 651.8986F) & 4095];
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final float sqrt_float(float var0) {
|
public static final float sqrt_float(float var0) {
|
||||||
|
@ -50,9 +50,12 @@ public class MathHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
for(int var0 = 0; var0 < 65536; ++var0) {
|
for (int j = 0; j < 4096; ++j) {
|
||||||
SIN_TABLE[var0] = (float)Math.sin((double)var0 * Math.PI * 2.0D / 65536.0D);
|
SIN_TABLE[j] = (float)Math.sin((double)(((float)j + 0.5F) / 4096.0F * ((float)Math.PI * 2F)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int l = 0; l < 360; l += 90) {
|
||||||
|
SIN_TABLE[(int)((float)l * 11.377778F) & 4095] = (float)Math.sin((double)((float)l * 0.017453292F));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,5 @@ public class RenderHelper {
|
||||||
GL11.glEnable(2903);
|
GL11.glEnable(2903);
|
||||||
GL11.glColorMaterial(1032, 5634);
|
GL11.glColorMaterial(1032, 5634);
|
||||||
GL11.copyModelToLightMatrix();
|
GL11.copyModelToLightMatrix();
|
||||||
GL11.flipLightMatrix();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -266,6 +266,7 @@ public class Tessellator {
|
||||||
int var5 = (int)((par2 / len) * 127.0F) + 127;
|
int var5 = (int)((par2 / len) * 127.0F) + 127;
|
||||||
int var6 = (int)((par3 / len) * 127.0F) + 127;
|
int var6 = (int)((par3 / len) * 127.0F) + 127;
|
||||||
this.normal = var4 & 255 | (var5 & 255) << 8 | (var6 & 255) << 16;
|
this.normal = var4 & 255 | (var5 & 255) << 8 | (var6 & 255) << 16;
|
||||||
|
GL11.glNormal3f(var4 & 255, (var5 & 255) << 8, (var6 & 255) << 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -435,9 +435,6 @@ public class EaglerAdapterGL30 extends EaglerAdapterImpl2 {
|
||||||
lightPos1vec.normalise();
|
lightPos1vec.normalise();
|
||||||
Matrix4f.transform(matModelV[matModelPointer], lightPos0vec, lightPos0vec).normalise();
|
Matrix4f.transform(matModelV[matModelPointer], lightPos0vec, lightPos0vec).normalise();
|
||||||
Matrix4f.transform(matModelV[matModelPointer], lightPos1vec, lightPos1vec).normalise();
|
Matrix4f.transform(matModelV[matModelPointer], lightPos1vec, lightPos1vec).normalise();
|
||||||
}
|
|
||||||
|
|
||||||
public static final void flipLightMatrix() {
|
|
||||||
lightPos0vec.x = -lightPos0vec.x;
|
lightPos0vec.x = -lightPos0vec.x;
|
||||||
lightPos1vec.x = -lightPos1vec.x;
|
lightPos1vec.x = -lightPos1vec.x;
|
||||||
lightPos0vec.y = -lightPos0vec.y;
|
lightPos0vec.y = -lightPos0vec.y;
|
||||||
|
|
159
web/js/app.js
159
web/js/app.js
|
@ -1247,7 +1247,6 @@
|
||||||
cjj_InfCodes__clinit_();
|
cjj_InfCodes__clinit_();
|
||||||
nms_EntityMinecart__clinit_();
|
nms_EntityMinecart__clinit_();
|
||||||
nms_ClippingHelperImplementation__clinit_();
|
nms_ClippingHelperImplementation__clinit_();
|
||||||
nms_RenderHelper__clinit_();
|
|
||||||
ju_Collections__clinit_();
|
ju_Collections__clinit_();
|
||||||
ju_Comparator$NaturalOrder__clinit_();
|
ju_Comparator$NaturalOrder__clinit_();
|
||||||
nms_NextTickListEntry__clinit_();
|
nms_NextTickListEntry__clinit_();
|
||||||
|
@ -16312,7 +16311,7 @@
|
||||||
olo_EaglerAdapterGL30_glRotatef(335.0, 0.0, 0.0, 1.0);
|
olo_EaglerAdapterGL30_glRotatef(335.0, 0.0, 0.0, 1.0);
|
||||||
olo_EaglerAdapterGL30_glTranslatef((-0.9375), (-0.0625), 0.0);
|
olo_EaglerAdapterGL30_glTranslatef((-0.9375), (-0.0625), 0.0);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 0.0, 1.0);
|
nms_Tessellator_setNormal($var2, 0.0, 0.0, 1.0);
|
||||||
var$10 = $var4;
|
var$10 = $var4;
|
||||||
var$11 = $var6;
|
var$11 = $var6;
|
||||||
nms_Tessellator_addVertexWithUV($var2, 0.0, 0.0, 0.0, var$10, var$11);
|
nms_Tessellator_addVertexWithUV($var2, 0.0, 0.0, 0.0, var$10, var$11);
|
||||||
|
@ -16323,14 +16322,14 @@
|
||||||
nms_Tessellator_addVertexWithUV($var2, 0.0, 1.0, 0.0, var$10, var$13);
|
nms_Tessellator_addVertexWithUV($var2, 0.0, 1.0, 0.0, var$10, var$13);
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 0.0, (-1.0));
|
nms_Tessellator_setNormal($var2, 0.0, 0.0, (-1.0));
|
||||||
nms_Tessellator_addVertexWithUV($var2, 0.0, 1.0, (-0.0625), var$10, var$13);
|
nms_Tessellator_addVertexWithUV($var2, 0.0, 1.0, (-0.0625), var$10, var$13);
|
||||||
nms_Tessellator_addVertexWithUV($var2, 1.0, 1.0, (-0.0625), var$12, var$13);
|
nms_Tessellator_addVertexWithUV($var2, 1.0, 1.0, (-0.0625), var$12, var$13);
|
||||||
nms_Tessellator_addVertexWithUV($var2, 1.0, 0.0, (-0.0625), var$12, var$11);
|
nms_Tessellator_addVertexWithUV($var2, 1.0, 0.0, (-0.0625), var$12, var$11);
|
||||||
nms_Tessellator_addVertexWithUV($var2, 0.0, 0.0, (-0.0625), var$10, var$11);
|
nms_Tessellator_addVertexWithUV($var2, 0.0, 0.0, (-0.0625), var$10, var$11);
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f((-1.0), 0.0, 0.0);
|
nms_Tessellator_setNormal($var2, (-1.0), 0.0, 0.0);
|
||||||
$var12 = 0;
|
$var12 = 0;
|
||||||
var$14 = $var3 - $var4;
|
var$14 = $var3 - $var4;
|
||||||
while ($var12 < 16) {
|
while ($var12 < 16) {
|
||||||
|
@ -16346,7 +16345,7 @@
|
||||||
}
|
}
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(1.0, 0.0, 0.0);
|
nms_Tessellator_setNormal($var2, 1.0, 0.0, 0.0);
|
||||||
$var12 = 0;
|
$var12 = 0;
|
||||||
while ($var12 < 16) {
|
while ($var12 < 16) {
|
||||||
$var13 = $var12 / 16.0;
|
$var13 = $var12 / 16.0;
|
||||||
|
@ -16361,7 +16360,7 @@
|
||||||
}
|
}
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0);
|
nms_Tessellator_setNormal($var2, 0.0, 1.0, 0.0);
|
||||||
$var12 = 0;
|
$var12 = 0;
|
||||||
$var5 = $var5 - $var6;
|
$var5 = $var5 - $var6;
|
||||||
while ($var12 < 16) {
|
while ($var12 < 16) {
|
||||||
|
@ -16377,7 +16376,7 @@
|
||||||
}
|
}
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, (-1.0), 0.0);
|
nms_Tessellator_setNormal($var2, 0.0, (-1.0), 0.0);
|
||||||
$var12 = 0;
|
$var12 = 0;
|
||||||
while ($var12 < 16) {
|
while ($var12 < 16) {
|
||||||
$var13 = $var12 / 16.0;
|
$var13 = $var12 / 16.0;
|
||||||
|
@ -16414,7 +16413,7 @@
|
||||||
olo_EaglerAdapterGL30_glRotatef(335.0, 0.0, 0.0, 1.0);
|
olo_EaglerAdapterGL30_glRotatef(335.0, 0.0, 0.0, 1.0);
|
||||||
olo_EaglerAdapterGL30_glTranslatef((-0.9375), (-0.0625), 0.0);
|
olo_EaglerAdapterGL30_glTranslatef((-0.9375), (-0.0625), 0.0);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 0.0, 1.0);
|
nms_Tessellator_setNormal($var2, 0.0, 0.0, 1.0);
|
||||||
var$10 = $var4;
|
var$10 = $var4;
|
||||||
var$11 = $var6;
|
var$11 = $var6;
|
||||||
nms_Tessellator_addVertexWithUV($var2, 0.0, 0.0, 0.0, var$10, var$11);
|
nms_Tessellator_addVertexWithUV($var2, 0.0, 0.0, 0.0, var$10, var$11);
|
||||||
|
@ -16425,14 +16424,14 @@
|
||||||
nms_Tessellator_addVertexWithUV($var2, 0.0, 1.0, 0.0, var$10, var$13);
|
nms_Tessellator_addVertexWithUV($var2, 0.0, 1.0, 0.0, var$10, var$13);
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 0.0, (-1.0));
|
nms_Tessellator_setNormal($var2, 0.0, 0.0, (-1.0));
|
||||||
nms_Tessellator_addVertexWithUV($var2, 0.0, 1.0, (-0.0625), var$10, var$13);
|
nms_Tessellator_addVertexWithUV($var2, 0.0, 1.0, (-0.0625), var$10, var$13);
|
||||||
nms_Tessellator_addVertexWithUV($var2, 1.0, 1.0, (-0.0625), var$12, var$13);
|
nms_Tessellator_addVertexWithUV($var2, 1.0, 1.0, (-0.0625), var$12, var$13);
|
||||||
nms_Tessellator_addVertexWithUV($var2, 1.0, 0.0, (-0.0625), var$12, var$11);
|
nms_Tessellator_addVertexWithUV($var2, 1.0, 0.0, (-0.0625), var$12, var$11);
|
||||||
nms_Tessellator_addVertexWithUV($var2, 0.0, 0.0, (-0.0625), var$10, var$11);
|
nms_Tessellator_addVertexWithUV($var2, 0.0, 0.0, (-0.0625), var$10, var$11);
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f((-1.0), 0.0, 0.0);
|
nms_Tessellator_setNormal($var2, (-1.0), 0.0, 0.0);
|
||||||
$var12 = 0;
|
$var12 = 0;
|
||||||
var$14 = $var3 - $var4;
|
var$14 = $var3 - $var4;
|
||||||
while ($var12 < 16) {
|
while ($var12 < 16) {
|
||||||
|
@ -16448,7 +16447,7 @@
|
||||||
}
|
}
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(1.0, 0.0, 0.0);
|
nms_Tessellator_setNormal($var2, 1.0, 0.0, 0.0);
|
||||||
$var12 = 0;
|
$var12 = 0;
|
||||||
while ($var12 < 16) {
|
while ($var12 < 16) {
|
||||||
$var13 = $var12 / 16.0;
|
$var13 = $var12 / 16.0;
|
||||||
|
@ -16463,7 +16462,7 @@
|
||||||
}
|
}
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0);
|
nms_Tessellator_setNormal($var2, 0.0, 1.0, 0.0);
|
||||||
$var12 = 0;
|
$var12 = 0;
|
||||||
$var5 = $var5 - $var6;
|
$var5 = $var5 - $var6;
|
||||||
while ($var12 < 16) {
|
while ($var12 < 16) {
|
||||||
|
@ -16479,7 +16478,7 @@
|
||||||
}
|
}
|
||||||
nms_Tessellator_draw($var2);
|
nms_Tessellator_draw($var2);
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, (-1.0), 0.0);
|
nms_Tessellator_setNormal($var2, 0.0, (-1.0), 0.0);
|
||||||
$var12 = 0;
|
$var12 = 0;
|
||||||
while ($var12 < 16) {
|
while ($var12 < 16) {
|
||||||
$var13 = $var12 / 16.0;
|
$var13 = $var12 / 16.0;
|
||||||
|
@ -22811,9 +22810,9 @@
|
||||||
var$7 = nms_Vec3D_normalize(nms_Vec3D_createVector(var$11, var$12 - var$15 * var$10, var$15 * var$13 - var$9 * var$14));
|
var$7 = nms_Vec3D_normalize(nms_Vec3D_createVector(var$11, var$12 - var$15 * var$10, var$15 * var$13 - var$9 * var$14));
|
||||||
nms_Tessellator_startDrawingQuads($var2);
|
nms_Tessellator_startDrawingQuads($var2);
|
||||||
if (!var$6.$field_1196_c)
|
if (!var$6.$field_1196_c)
|
||||||
olo_EaglerAdapterGL30_glNormal3f(var$7.$xCoord, var$7.$yCoord, var$7.$zCoord);
|
nms_Tessellator_setNormal($var2, var$7.$xCoord, var$7.$yCoord, var$7.$zCoord);
|
||||||
else
|
else
|
||||||
olo_EaglerAdapterGL30_glNormal3f( -var$7.$xCoord, -var$7.$yCoord, -var$7.$zCoord);
|
nms_Tessellator_setNormal($var2, -var$7.$xCoord, -var$7.$yCoord, -var$7.$zCoord);
|
||||||
var$2 = 0;
|
var$2 = 0;
|
||||||
while (var$2 < 4) {
|
while (var$2 < 4) {
|
||||||
var$7 = var$6.$field_1195_a.data[var$2];
|
var$7 = var$6.$field_1195_a.data[var$2];
|
||||||
|
@ -43183,13 +43182,19 @@
|
||||||
}
|
}
|
||||||
var nms_Vec3D_vectorList = null;
|
var nms_Vec3D_vectorList = null;
|
||||||
var nms_Vec3D_nextVector = 0;
|
var nms_Vec3D_nextVector = 0;
|
||||||
function nms_Vec3D__init_(var_0, var_1, var_2) {
|
|
||||||
var var_3 = new nms_Vec3D();
|
|
||||||
nms_Vec3D__init_0(var_3, var_0, var_1, var_2);
|
|
||||||
return var_3;
|
|
||||||
}
|
|
||||||
function nms_Vec3D_createVectorHelper($var0, $var2, $var4) {
|
function nms_Vec3D_createVectorHelper($var0, $var2, $var4) {
|
||||||
return nms_Vec3D__init_($var0, $var2, $var4);
|
var var$4;
|
||||||
|
var$4 = new nms_Vec3D;
|
||||||
|
if ($var0 === -0.0)
|
||||||
|
$var0 = 0.0;
|
||||||
|
if ($var2 === -0.0)
|
||||||
|
$var2 = 0.0;
|
||||||
|
if ($var4 === -0.0)
|
||||||
|
$var4 = 0.0;
|
||||||
|
var$4.$xCoord = $var0;
|
||||||
|
var$4.$yCoord = $var2;
|
||||||
|
var$4.$zCoord = $var4;
|
||||||
|
return var$4;
|
||||||
}
|
}
|
||||||
function nms_Vec3D_createVector($var0, $var2, $var4) {
|
function nms_Vec3D_createVector($var0, $var2, $var4) {
|
||||||
var var$4, var$5, var$6, var$7;
|
var var$4, var$5, var$6, var$7;
|
||||||
|
@ -43206,17 +43211,6 @@
|
||||||
var$6.$zCoord = $var4;
|
var$6.$zCoord = $var4;
|
||||||
return var$6;
|
return var$6;
|
||||||
}
|
}
|
||||||
function nms_Vec3D__init_0($this, $var1, $var3, $var5) {
|
|
||||||
if ($var1 === -0.0)
|
|
||||||
$var1 = 0.0;
|
|
||||||
if ($var3 === -0.0)
|
|
||||||
$var3 = 0.0;
|
|
||||||
if ($var5 === -0.0)
|
|
||||||
$var5 = 0.0;
|
|
||||||
$this.$xCoord = $var1;
|
|
||||||
$this.$yCoord = $var3;
|
|
||||||
$this.$zCoord = $var5;
|
|
||||||
}
|
|
||||||
function nms_Vec3D_func_1262_a($this, $var1) {
|
function nms_Vec3D_func_1262_a($this, $var1) {
|
||||||
return nms_Vec3D_createVector($var1.$xCoord - $this.$xCoord, $var1.$yCoord - $this.$yCoord, $var1.$zCoord - $this.$zCoord);
|
return nms_Vec3D_createVector($var1.$xCoord - $this.$xCoord, $var1.$yCoord - $this.$yCoord, $var1.$zCoord - $this.$zCoord);
|
||||||
}
|
}
|
||||||
|
@ -51043,6 +51037,7 @@
|
||||||
a.$color = 0;
|
a.$color = 0;
|
||||||
a.$hasColor = 0;
|
a.$hasColor = 0;
|
||||||
a.$hasTexture = 0;
|
a.$hasTexture = 0;
|
||||||
|
a.$hasNormals = 0;
|
||||||
a.$rawBufferIndex = 0;
|
a.$rawBufferIndex = 0;
|
||||||
a.$addedVertices = 0;
|
a.$addedVertices = 0;
|
||||||
a.$isColorDisabled = 0;
|
a.$isColorDisabled = 0;
|
||||||
|
@ -51051,6 +51046,7 @@
|
||||||
a.$yOffset0 = 0.0;
|
a.$yOffset0 = 0.0;
|
||||||
a.$zOffset = 0.0;
|
a.$zOffset = 0.0;
|
||||||
a.$isDrawing = 0;
|
a.$isDrawing = 0;
|
||||||
|
a.$normal = 0;
|
||||||
}
|
}
|
||||||
var nms_Tessellator_instance = null;
|
var nms_Tessellator_instance = null;
|
||||||
function nms_Tessellator_$callClinit() {
|
function nms_Tessellator_$callClinit() {
|
||||||
|
@ -51067,11 +51063,15 @@
|
||||||
olo_EaglerAdapterGL30_glEnableVertexAttrib(32888);
|
olo_EaglerAdapterGL30_glEnableVertexAttrib(32888);
|
||||||
if ($this.$hasColor)
|
if ($this.$hasColor)
|
||||||
olo_EaglerAdapterGL30_glEnableVertexAttrib(32886);
|
olo_EaglerAdapterGL30_glEnableVertexAttrib(32886);
|
||||||
|
if ($this.$hasNormals)
|
||||||
|
olo_EaglerAdapterGL30_glEnableVertexAttrib(32885);
|
||||||
var$1 = $this.$drawMode;
|
var$1 = $this.$drawMode;
|
||||||
var$2 = $this.$vertexCount;
|
var$2 = $this.$vertexCount;
|
||||||
var$3 = $this.$intBuffer.buffer;
|
var$3 = $this.$intBuffer.buffer;
|
||||||
var$4 = $this.$vertexCount * 7 | 0;
|
var$4 = $this.$vertexCount * 7 | 0;
|
||||||
olo_EaglerAdapterGL30_glDrawArrays(var$1, 0, var$2, otji_JSWrapper_wrap(new $rt_globals.Int32Array(var$3, 0, var$4)));
|
olo_EaglerAdapterGL30_glDrawArrays(var$1, 0, var$2, otji_JSWrapper_wrap(new $rt_globals.Int32Array(var$3, 0, var$4)));
|
||||||
|
if ($this.$hasNormals)
|
||||||
|
olo_EaglerAdapterGL30_glDisableVertexAttrib(32885);
|
||||||
if ($this.$hasTexture)
|
if ($this.$hasTexture)
|
||||||
olo_EaglerAdapterGL30_glDisableVertexAttrib(32888);
|
olo_EaglerAdapterGL30_glDisableVertexAttrib(32888);
|
||||||
if ($this.$hasColor)
|
if ($this.$hasColor)
|
||||||
|
@ -51095,6 +51095,7 @@
|
||||||
$this.$isDrawing = 1;
|
$this.$isDrawing = 1;
|
||||||
nms_Tessellator_reset($this);
|
nms_Tessellator_reset($this);
|
||||||
$this.$drawMode = $par1;
|
$this.$drawMode = $par1;
|
||||||
|
$this.$hasNormals = 0;
|
||||||
$this.$hasColor = 0;
|
$this.$hasColor = 0;
|
||||||
$this.$hasTexture = 0;
|
$this.$hasTexture = 0;
|
||||||
$this.$isColorDisabled = 0;
|
$this.$isColorDisabled = 0;
|
||||||
|
@ -51137,7 +51138,7 @@
|
||||||
nms_Tessellator_addVertex($this, $par1, $par3, $par5);
|
nms_Tessellator_addVertex($this, $par1, $par3, $par5);
|
||||||
}
|
}
|
||||||
function nms_Tessellator_addVertex($this, $par1, $par3, $par5) {
|
function nms_Tessellator_addVertex($this, $par1, $par3, $par5) {
|
||||||
var $bufferIndex, $intBuffer0, $floatBuffer0, var$7, var$8;
|
var $bufferIndex, $intBuffer0, $floatBuffer0, var$7, var$8, var$9;
|
||||||
$bufferIndex = $this.$addedVertices;
|
$bufferIndex = $this.$addedVertices;
|
||||||
if ($bufferIndex > 65534)
|
if ($bufferIndex > 65534)
|
||||||
return;
|
return;
|
||||||
|
@ -51170,7 +51171,13 @@
|
||||||
}
|
}
|
||||||
if ($this.$hasColor) {
|
if ($this.$hasColor) {
|
||||||
var$7 = $bufferIndex + 5 | 0;
|
var$7 = $bufferIndex + 5 | 0;
|
||||||
$bufferIndex = $this.$color;
|
var$9 = $this.$color;
|
||||||
|
var$7;
|
||||||
|
$intBuffer0[var$7] = var$9;
|
||||||
|
}
|
||||||
|
if ($this.$hasNormals) {
|
||||||
|
var$7 = $bufferIndex + 6 | 0;
|
||||||
|
$bufferIndex = $this.$normal;
|
||||||
var$7;
|
var$7;
|
||||||
$intBuffer0[var$7] = $bufferIndex;
|
$intBuffer0[var$7] = $bufferIndex;
|
||||||
}
|
}
|
||||||
|
@ -51180,7 +51187,18 @@
|
||||||
nms_Tessellator_setColorOpaque($this, $par1 >> 16 & 255, $par1 >> 8 & 255, $par1 & 255);
|
nms_Tessellator_setColorOpaque($this, $par1 >> 16 & 255, $par1 >> 8 & 255, $par1 & 255);
|
||||||
}
|
}
|
||||||
function nms_Tessellator_setNormal($this, $par1, $par2, $par3) {
|
function nms_Tessellator_setNormal($this, $par1, $par2, $par3) {
|
||||||
olo_EaglerAdapterGL30_glNormal3f($par1, $par2, $par3);
|
var $len, $var4, $var5, $var6, var$8;
|
||||||
|
$this.$hasNormals = 1;
|
||||||
|
$len = jl_Math_sqrt($par1 * $par1 + $par2 * $par2 + $par3 * $par3);
|
||||||
|
$var4 = ($par1 / $len * 127.0 | 0) + 127 | 0;
|
||||||
|
$var5 = ($par2 / $len * 127.0 | 0) + 127 | 0;
|
||||||
|
$var6 = ($par3 / $len * 127.0 | 0) + 127 | 0;
|
||||||
|
$var4 = $var4 & 255;
|
||||||
|
var$8 = ($var5 & 255) << 8;
|
||||||
|
$var5 = $var4 | var$8;
|
||||||
|
$var6 = ($var6 & 255) << 16;
|
||||||
|
$this.$normal = $var5 | $var6;
|
||||||
|
olo_EaglerAdapterGL30_glNormal3f($var4, var$8, $var6);
|
||||||
}
|
}
|
||||||
function nms_Tessellator_setTranslationD($this, $par1, $par3, $par5) {
|
function nms_Tessellator_setTranslationD($this, $par1, $par3, $par5) {
|
||||||
$this.$xOffset = $par1;
|
$this.$xOffset = $par1;
|
||||||
|
@ -51199,6 +51217,7 @@
|
||||||
var$1.$vertexCount = 0;
|
var$1.$vertexCount = 0;
|
||||||
var$1.$hasColor = 0;
|
var$1.$hasColor = 0;
|
||||||
var$1.$hasTexture = 0;
|
var$1.$hasTexture = 0;
|
||||||
|
var$1.$hasNormals = 0;
|
||||||
var$1.$rawBufferIndex = 0;
|
var$1.$rawBufferIndex = 0;
|
||||||
var$1.$addedVertices = 0;
|
var$1.$addedVertices = 0;
|
||||||
var$1.$isColorDisabled = 0;
|
var$1.$isColorDisabled = 0;
|
||||||
|
@ -60947,10 +60966,10 @@
|
||||||
}
|
}
|
||||||
function nms_MathHelper__init_($this) {}
|
function nms_MathHelper__init_($this) {}
|
||||||
function nms_MathHelper_sin($var0) {
|
function nms_MathHelper_sin($var0) {
|
||||||
return nms_MathHelper_SIN_TABLE.data[($var0 * 10430.3779296875 | 0) & 65535];
|
return nms_MathHelper_SIN_TABLE.data[($var0 * 651.8986206054688 | 0) & 4095];
|
||||||
}
|
}
|
||||||
function nms_MathHelper_cos($var0) {
|
function nms_MathHelper_cos($var0) {
|
||||||
return nms_MathHelper_SIN_TABLE.data[($var0 * 10430.3779296875 + 16384.0 | 0) & 65535];
|
return nms_MathHelper_SIN_TABLE.data[(($var0 + 1.5707963705062866) * 651.8986206054688 | 0) & 4095];
|
||||||
}
|
}
|
||||||
function nms_MathHelper_sqrt_float($var0) {
|
function nms_MathHelper_sqrt_float($var0) {
|
||||||
return jl_Math_sqrt($var0);
|
return jl_Math_sqrt($var0);
|
||||||
|
@ -60976,12 +60995,19 @@
|
||||||
return $var0 >= 0 ? $var0 / $var1 | 0 : ( -((( -$var0 | 0) - 1 | 0) / $var1 | 0) | 0) - 1 | 0;
|
return $var0 >= 0 ? $var0 / $var1 | 0 : ( -((( -$var0 | 0) - 1 | 0) / $var1 | 0) | 0) - 1 | 0;
|
||||||
}
|
}
|
||||||
function nms_MathHelper__clinit_() {
|
function nms_MathHelper__clinit_() {
|
||||||
var $var0;
|
var $j, $l, var$3, var$4;
|
||||||
nms_MathHelper_SIN_TABLE = $rt_createFloatArray(65536);
|
nms_MathHelper_SIN_TABLE = $rt_createFloatArray(4096);
|
||||||
$var0 = 0;
|
$j = 0;
|
||||||
while ($var0 < 65536) {
|
while ($j < 4096) {
|
||||||
nms_MathHelper_SIN_TABLE.data[$var0] = jl_Math_sin($var0 * 3.141592653589793 * 2.0 / 65536.0);
|
nms_MathHelper_SIN_TABLE.data[$j] = jl_Math_sin(($j + 0.5) / 4096.0 * 6.2831854820251465);
|
||||||
$var0 = $var0 + 1 | 0;
|
$j = $j + 1 | 0;
|
||||||
|
}
|
||||||
|
$l = 0;
|
||||||
|
while ($l < 360) {
|
||||||
|
var$3 = nms_MathHelper_SIN_TABLE.data;
|
||||||
|
var$4 = $l;
|
||||||
|
var$3[(var$4 * 11.377778053283691 | 0) & 4095] = jl_Math_sin(var$4 * 0.01745329238474369);
|
||||||
|
$l = $l + 90 | 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function nms_KeyBinding() {
|
function nms_KeyBinding() {
|
||||||
|
@ -65732,32 +65758,32 @@
|
||||||
olo_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0);
|
olo_EaglerAdapterGL30_glColor4f(1.0, 1.0, 1.0, 1.0);
|
||||||
nms_Tessellator_startDrawingQuads($var7);
|
nms_Tessellator_startDrawingQuads($var7);
|
||||||
nms_Tessellator_setTranslationD($var7, $var1, $var3, $var5);
|
nms_Tessellator_setTranslationD($var7, $var1, $var3, $var5);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 0.0, (-1.0));
|
nms_Tessellator_setNormal($var7, 0.0, 0.0, (-1.0));
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$minZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$minZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$minZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$minZ0);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 0.0, 1.0);
|
nms_Tessellator_setNormal($var7, 0.0, 0.0, 1.0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$maxZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$maxZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$maxZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$maxZ0);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, (-1.0), 0.0);
|
nms_Tessellator_setNormal($var7, 0.0, (-1.0), 0.0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$minZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$minZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$maxZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$maxZ0);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0);
|
nms_Tessellator_setNormal($var7, 0.0, 1.0, 0.0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$maxZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$maxZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$minZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$minZ0);
|
||||||
olo_EaglerAdapterGL30_glNormal3f((-1.0), 0.0, 0.0);
|
nms_Tessellator_setNormal($var7, (-1.0), 0.0, 0.0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$maxZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$maxZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$maxY0, $var0.$minZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$minX, $var0.$minY0, $var0.$minZ0);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(1.0, 0.0, 0.0);
|
nms_Tessellator_setNormal($var7, 1.0, 0.0, 0.0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$minY0, $var0.$minZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$minZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$minZ0);
|
||||||
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$maxZ0);
|
nms_Tessellator_addVertex($var7, $var0.$maxX0, $var0.$maxY0, $var0.$maxZ0);
|
||||||
|
@ -66075,7 +66101,7 @@
|
||||||
olo_EaglerAdapterGL30_glTranslatef((ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896);
|
olo_EaglerAdapterGL30_glTranslatef((ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896);
|
||||||
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
||||||
nms_Tessellator_startDrawingQuads($var15);
|
nms_Tessellator_startDrawingQuads($var15);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0);
|
nms_Tessellator_setNormal($var15, 0.0, 1.0, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var15, (-0.5), (-0.25), 0.0, $var4, $var6);
|
nms_Tessellator_addVertexWithUV($var15, (-0.5), (-0.25), 0.0, $var4, $var6);
|
||||||
nms_Tessellator_addVertexWithUV($var15, 0.5, (-0.25), 0.0, var$19, $var6);
|
nms_Tessellator_addVertexWithUV($var15, 0.5, (-0.25), 0.0, var$19, $var6);
|
||||||
nms_Tessellator_addVertexWithUV($var15, 0.5, 0.75, 0.0, var$19, var$20);
|
nms_Tessellator_addVertexWithUV($var15, 0.5, 0.75, 0.0, var$19, var$20);
|
||||||
|
@ -66111,7 +66137,7 @@
|
||||||
olo_EaglerAdapterGL30_glTranslatef((ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896);
|
olo_EaglerAdapterGL30_glTranslatef((ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896, (ju_Random_nextFloat($this.$random0) * 2.0 - 1.0) * 0.30000001192092896);
|
||||||
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
||||||
nms_Tessellator_startDrawingQuads($var15);
|
nms_Tessellator_startDrawingQuads($var15);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0);
|
nms_Tessellator_setNormal($var15, 0.0, 1.0, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var15, (-0.5), (-0.25), 0.0, $var4, $var6);
|
nms_Tessellator_addVertexWithUV($var15, (-0.5), (-0.25), 0.0, $var4, $var6);
|
||||||
nms_Tessellator_addVertexWithUV($var15, 0.5, (-0.25), 0.0, var$19, $var6);
|
nms_Tessellator_addVertexWithUV($var15, 0.5, (-0.25), 0.0, var$19, $var6);
|
||||||
nms_Tessellator_addVertexWithUV($var15, 0.5, 0.75, 0.0, var$19, var$20);
|
nms_Tessellator_addVertexWithUV($var15, 0.5, 0.75, 0.0, var$19, var$20);
|
||||||
|
@ -70696,7 +70722,7 @@
|
||||||
nms_Tessellator_$callClinit();
|
nms_Tessellator_$callClinit();
|
||||||
$var32 = nms_Tessellator_instance;
|
$var32 = nms_Tessellator_instance;
|
||||||
nms_Tessellator_startDrawingQuads($var32);
|
nms_Tessellator_startDrawingQuads($var32);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 0.0, (-1.0));
|
nms_Tessellator_setNormal($var32, 0.0, 0.0, (-1.0));
|
||||||
var$28 = $var12;
|
var$28 = $var12;
|
||||||
var$29 = $var15;
|
var$29 = $var15;
|
||||||
var$30 = $var17;
|
var$30 = $var17;
|
||||||
|
@ -70709,27 +70735,27 @@
|
||||||
var$34 = $var19;
|
var$34 = $var19;
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, (-0.5), var$33, var$34);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, (-0.5), var$33, var$34);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, (-0.5), var$30, var$34);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, (-0.5), var$30, var$34);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 0.0, 1.0);
|
nms_Tessellator_setNormal($var32, 0.0, 0.0, 1.0);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, 0.5, 0.75, 0.0);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, 0.5, 0.75, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, 0.5, 0.8125, 0.0);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, 0.5, 0.8125, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, 0.5, 0.8125, 0.0625);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, 0.5, 0.8125, 0.0625);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, 0.5, 0.75, 0.0625);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, 0.5, 0.75, 0.0625);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, (-1.0), 0.0);
|
nms_Tessellator_setNormal($var32, 0.0, (-1.0), 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, (-0.5), 0.75, 0.001953125);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, (-0.5), 0.75, 0.001953125);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, (-0.5), 0.8125, 0.001953125);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, (-0.5), 0.8125, 0.001953125);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, 0.5, 0.8125, 0.001953125);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, 0.5, 0.8125, 0.001953125);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, 0.5, 0.75, 0.001953125);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, 0.5, 0.75, 0.001953125);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0);
|
nms_Tessellator_setNormal($var32, 0.0, 1.0, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, 0.5, 0.75, 0.001953125);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, 0.5, 0.75, 0.001953125);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, 0.5, 0.8125, 0.001953125);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, 0.5, 0.8125, 0.001953125);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, (-0.5), 0.8125, 0.001953125);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, (-0.5), 0.8125, 0.001953125);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, (-0.5), 0.75, 0.001953125);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, (-0.5), 0.75, 0.001953125);
|
||||||
olo_EaglerAdapterGL30_glNormal3f((-1.0), 0.0, 0.0);
|
nms_Tessellator_setNormal($var32, (-1.0), 0.0, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, 0.5, 0.751953125, 0.0);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, 0.5, 0.751953125, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, 0.5, 0.751953125, 0.0625);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, 0.5, 0.751953125, 0.0625);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, (-0.5), 0.751953125, 0.0625);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$29, (-0.5), 0.751953125, 0.0625);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, (-0.5), 0.751953125, 0.0);
|
nms_Tessellator_addVertexWithUV($var32, var$28, var$31, (-0.5), 0.751953125, 0.0);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(1.0, 0.0, 0.0);
|
nms_Tessellator_setNormal($var32, 1.0, 0.0, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, (-0.5), 0.751953125, 0.0);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$31, (-0.5), 0.751953125, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, (-0.5), 0.751953125, 0.0625);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, (-0.5), 0.751953125, 0.0625);
|
||||||
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, 0.5, 0.751953125, 0.0625);
|
nms_Tessellator_addVertexWithUV($var32, var$32, var$29, 0.5, 0.751953125, 0.0625);
|
||||||
|
@ -71801,7 +71827,7 @@
|
||||||
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
||||||
olo_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$field_1224_j, 1.0, 0.0, 0.0);
|
olo_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$field_1224_j, 1.0, 0.0, 0.0);
|
||||||
nms_Tessellator_startDrawingQuads($var1);
|
nms_Tessellator_startDrawingQuads($var1);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0);
|
nms_Tessellator_setNormal($var1, 0.0, 1.0, 0.0);
|
||||||
var$12 = $var9;
|
var$12 = $var9;
|
||||||
var$13 = var$11;
|
var$13 = var$11;
|
||||||
nms_Tessellator_addVertexWithUV($var1, (-0.5), (-0.25), 0.0, var$12, var$13);
|
nms_Tessellator_addVertexWithUV($var1, (-0.5), (-0.25), 0.0, var$12, var$13);
|
||||||
|
@ -72222,7 +72248,7 @@
|
||||||
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
||||||
olo_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$field_1224_j, 1.0, 0.0, 0.0);
|
olo_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$field_1224_j, 1.0, 0.0, 0.0);
|
||||||
nms_Tessellator_startDrawingQuads($var1);
|
nms_Tessellator_startDrawingQuads($var1);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0);
|
nms_Tessellator_setNormal($var1, 0.0, 1.0, 0.0);
|
||||||
var$12 = $var8;
|
var$12 = $var8;
|
||||||
var$13 = var$11;
|
var$13 = var$11;
|
||||||
nms_Tessellator_addVertexWithUV($var1, (-0.5), (-0.25), 0.0, var$12, var$13);
|
nms_Tessellator_addVertexWithUV($var1, (-0.5), (-0.25), 0.0, var$12, var$13);
|
||||||
|
@ -75303,7 +75329,7 @@
|
||||||
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
olo_EaglerAdapterGL30_glRotatef(180.0 - $this.$renderManager.$field_1225_i, 0.0, 1.0, 0.0);
|
||||||
olo_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$field_1224_j, 1.0, 0.0, 0.0);
|
olo_EaglerAdapterGL30_glRotatef( -$this.$renderManager.$field_1224_j, 1.0, 0.0, 0.0);
|
||||||
nms_Tessellator_startDrawingQuads($var12);
|
nms_Tessellator_startDrawingQuads($var12);
|
||||||
olo_EaglerAdapterGL30_glNormal3f(0.0, 1.0, 0.0);
|
nms_Tessellator_setNormal($var12, 0.0, 1.0, 0.0);
|
||||||
nms_Tessellator_addVertexWithUV($var12, (-0.5), (-0.5), 0.0, 0.0625, 0.1875);
|
nms_Tessellator_addVertexWithUV($var12, (-0.5), (-0.5), 0.0, 0.0625, 0.1875);
|
||||||
nms_Tessellator_addVertexWithUV($var12, 0.5, (-0.5), 0.0, 0.125, 0.1875);
|
nms_Tessellator_addVertexWithUV($var12, 0.5, (-0.5), 0.0, 0.125, 0.1875);
|
||||||
nms_Tessellator_addVertexWithUV($var12, 0.5, 0.5, 0.0, 0.125, 0.125);
|
nms_Tessellator_addVertexWithUV($var12, 0.5, 0.5, 0.0, 0.125, 0.125);
|
||||||
|
@ -76774,7 +76800,6 @@
|
||||||
return nms_ClippingHelper_func_1152_a($var1, var$2, var$3, var$4 - var$10, var$5 - var$8, var$6 - var$9, var$7 - var$10);
|
return nms_ClippingHelper_func_1152_a($var1, var$2, var$3, var$4 - var$10, var$5 - var$8, var$6 - var$9, var$7 - var$10);
|
||||||
}
|
}
|
||||||
var nms_RenderHelper = $rt_classWithoutFields();
|
var nms_RenderHelper = $rt_classWithoutFields();
|
||||||
var nms_RenderHelper_field_1695_a = null;
|
|
||||||
function nms_RenderHelper__init_0() {
|
function nms_RenderHelper__init_0() {
|
||||||
var var_0 = new nms_RenderHelper();
|
var var_0 = new nms_RenderHelper();
|
||||||
nms_RenderHelper__init_(var_0);
|
nms_RenderHelper__init_(var_0);
|
||||||
|
@ -76792,14 +76817,9 @@
|
||||||
olo_EaglerAdapterGL30_glEnable(2903);
|
olo_EaglerAdapterGL30_glEnable(2903);
|
||||||
nPgv_Vector4f_set(olo_EaglerAdapterGL30_lightPos0vec0, olo_EaglerAdapterGL30_lightPos0vec);
|
nPgv_Vector4f_set(olo_EaglerAdapterGL30_lightPos0vec0, olo_EaglerAdapterGL30_lightPos0vec);
|
||||||
nPgv_Vector4f_set(olo_EaglerAdapterGL30_lightPos1vec0, olo_EaglerAdapterGL30_lightPos1vec);
|
nPgv_Vector4f_set(olo_EaglerAdapterGL30_lightPos1vec0, olo_EaglerAdapterGL30_lightPos1vec);
|
||||||
var$1 = nms_Vec3D__init_(0.0, (-1.0), 0.5);
|
nPgv_Vector4f_set0(olo_EaglerAdapterGL30_lightPos0vec, 0.20000000298023224, 1.0, (-0.699999988079071), 0.0);
|
||||||
nms_Vec3D_normalize(var$1);
|
|
||||||
nPgv_Vector4f_set0(olo_EaglerAdapterGL30_lightPos0vec, var$1.$xCoord, var$1.$yCoord, var$1.$zCoord, 0.0);
|
|
||||||
var$1 = nms_Vec3D__init_(0.20000000298023224, 1.0, (-0.699999988079071));
|
|
||||||
nms_Vec3D_normalize(var$1);
|
|
||||||
nPgv_Vector_normalise(olo_EaglerAdapterGL30_lightPos0vec);
|
nPgv_Vector_normalise(olo_EaglerAdapterGL30_lightPos0vec);
|
||||||
nPgv_Vector4f_set0(olo_EaglerAdapterGL30_lightPos1vec, var$1.$xCoord, var$1.$yCoord, var$1.$zCoord, 0.0);
|
nPgv_Vector4f_set0(olo_EaglerAdapterGL30_lightPos1vec, (-0.20000000298023224), 1.0, 0.699999988079071, 0.0);
|
||||||
nms_Vec3D_normalize(nms_Vec3D__init_((-0.20000000298023224), 1.0, 0.699999988079071));
|
|
||||||
nPgv_Vector_normalise(olo_EaglerAdapterGL30_lightPos1vec);
|
nPgv_Vector_normalise(olo_EaglerAdapterGL30_lightPos1vec);
|
||||||
var$1 = olo_EaglerAdapterGL30_matModelV.data[olo_EaglerAdapterGL30_matModelPointer];
|
var$1 = olo_EaglerAdapterGL30_matModelV.data[olo_EaglerAdapterGL30_matModelPointer];
|
||||||
var$2 = olo_EaglerAdapterGL30_lightPos0vec;
|
var$2 = olo_EaglerAdapterGL30_lightPos0vec;
|
||||||
|
@ -76816,9 +76836,6 @@
|
||||||
var$1.$z0 = -var$1.$z0;
|
var$1.$z0 = -var$1.$z0;
|
||||||
var$2.$z0 = -var$2.$z0;
|
var$2.$z0 = -var$2.$z0;
|
||||||
}
|
}
|
||||||
function nms_RenderHelper__clinit_() {
|
|
||||||
nms_RenderHelper_field_1695_a = nms_GLAllocation_createDirectFloatBuffer(16);
|
|
||||||
}
|
|
||||||
function nms_GuiChat() {
|
function nms_GuiChat() {
|
||||||
var a = this; nms_GuiScreen.call(a);
|
var a = this; nms_GuiScreen.call(a);
|
||||||
a.$message1 = null;
|
a.$message1 = null;
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user