Upload files to "src/openonyx/render/group_i"
This commit is contained in:
1 parent
8c6508551e
commit
60edf0a6bf
5 files changed
+163
No files matched your search
@@ -0,0 +1,35 @@
|
||||
package openonyx.render.group_i;
|
||||
|
||||
import net.minecraft.client.renderer.WorldRenderer;
|
||||
import net.minecraft.util.Vec3;
|
||||
|
||||
final class ChinaHatRendererPart2 {
|
||||
private final float h;
|
||||
private final float l;
|
||||
private final float I;
|
||||
private final float d;
|
||||
private final float i;
|
||||
private final double f;
|
||||
private final double H;
|
||||
private final double e;
|
||||
|
||||
private void L(WorldRenderer worldRenderer, float f, float g, float h, int i) {
|
||||
float k;
|
||||
float j = (k = g + this.h) * this.d - hx * this.l;
|
||||
g = k * this.l + hx * this.d;
|
||||
ChinaHatRenderer.L(worldRenderer, this.e + fx * this.i - g * this.I, this.f + j, this.H + fx * this.I + g * this.i, ix);
|
||||
}
|
||||
|
||||
private ChinaHatRendererPart2(HatPose hatPose, Vec3 vec3) {
|
||||
this.e = hatPose.pivot().xCoord - vec3.xCoord;
|
||||
this.f = hatPose.pivot().yCoord - vec3.yCoord;
|
||||
this.H = hatPose.pivot().zCoord - vec3.zCoord;
|
||||
this.h = hatPose.lift();
|
||||
float fx = (float)Math.toRadians(hatPose.pitch());
|
||||
float g = (float)Math.toRadians(hatPose.yaw());
|
||||
this.d = (float)Math.cos(fx);
|
||||
this.l = (float)Math.sin(fx);
|
||||
this.i = (float)Math.cos(g);
|
||||
this.I = (float)Math.sin(g);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user