mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
aesthetically prodigious train man
This commit is contained in:
parent
a2ab196378
commit
adc651eecc
@ -16,11 +16,16 @@ public class RenderTrainCargoTram extends Render {
|
|||||||
GL11.glPushMatrix();
|
GL11.glPushMatrix();
|
||||||
GL11.glTranslated(x, y, z);
|
GL11.glTranslated(x, y, z);
|
||||||
|
|
||||||
GL11.glRotated( -entity.rotationYaw, 0, 1, 0);
|
float yaw = entity.rotationYaw;
|
||||||
GL11.glRotated(-entity.rotationPitch, 0, 0, 1);
|
float prevYaw = entity.prevRotationYaw;
|
||||||
|
|
||||||
MainRegistry.proxy.displayTooltip("Render Yaw: " + entity.rotationYaw, 666);
|
if(yaw - prevYaw > 180) yaw -= 360;
|
||||||
MainRegistry.proxy.displayTooltip("Render Pitch: " + entity.rotationPitch, 667);
|
if(prevYaw - yaw > 180) prevYaw -= 360;
|
||||||
|
|
||||||
|
float yawInterp = prevYaw + (yaw - prevYaw) * interp - 720;
|
||||||
|
|
||||||
|
GL11.glRotated(-yawInterp, 0, 1, 0);
|
||||||
|
GL11.glRotated(-entity.rotationPitch, 0, 0, 1);
|
||||||
|
|
||||||
GL11.glDisable(GL11.GL_CULL_FACE);
|
GL11.glDisable(GL11.GL_CULL_FACE);
|
||||||
bindTexture(ResourceManager.train_tram);
|
bindTexture(ResourceManager.train_tram);
|
||||||
|
|||||||
@ -270,7 +270,7 @@ vt 0.777778 0.318182
|
|||||||
vt 0.716049 0.500000
|
vt 0.716049 0.500000
|
||||||
vt 0.716901 0.318679
|
vt 0.716901 0.318679
|
||||||
vt 0.697531 0.500000
|
vt 0.697531 0.500000
|
||||||
vt 0.629630 0.534091
|
vt 0.629630 0.522727
|
||||||
vt 0.629630 0.500000
|
vt 0.629630 0.500000
|
||||||
vt 0.777778 0.522727
|
vt 0.777778 0.522727
|
||||||
vt 0.716049 0.522727
|
vt 0.716049 0.522727
|
||||||
@ -278,7 +278,7 @@ vt 0.697531 0.318182
|
|||||||
vt 0.796296 0.500000
|
vt 0.796296 0.500000
|
||||||
vt 0.777778 0.500000
|
vt 0.777778 0.500000
|
||||||
vt 0.864198 0.500000
|
vt 0.864198 0.500000
|
||||||
vt 0.796296 0.534091
|
vt 0.796296 0.522727
|
||||||
vt 0.617284 0.454545
|
vt 0.617284 0.454545
|
||||||
vt 0.604938 0.318182
|
vt 0.604938 0.318182
|
||||||
vt 0.617284 0.318182
|
vt 0.617284 0.318182
|
||||||
@ -438,9 +438,9 @@ vt 0.222222 0.545455
|
|||||||
vt 0.148148 0.772727
|
vt 0.148148 0.772727
|
||||||
vt 0.271605 0.909091
|
vt 0.271605 0.909091
|
||||||
vt 0.222222 0.545455
|
vt 0.222222 0.545455
|
||||||
vt 0.697531 0.534091
|
vt 0.697531 0.522727
|
||||||
vt 0.796296 0.318182
|
vt 0.796296 0.318182
|
||||||
vt 0.864198 0.534091
|
vt 0.864198 0.522727
|
||||||
vt 0.901235 0.477273
|
vt 0.901235 0.477273
|
||||||
vt 0.901235 0.500000
|
vt 0.901235 0.500000
|
||||||
vt 0.913580 0.613636
|
vt 0.913580 0.613636
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 4.3 KiB |
Loading…
x
Reference in New Issue
Block a user