Skip to content

Commit

Permalink
Update PanoramaRenderer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
LudoCrypt committed Nov 28, 2021
1 parent b5080a7 commit 23d67e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public void render(float delta, float alpha) {

matrixStack.push();
matrixStack.translate(this.cubemap.getVisualControl().getAddedX(), this.cubemap.getVisualControl().getAddedY(), this.cubemap.getVisualControl().getAddedZ());
matrixStack.multiply(Vec3f.POSITIVE_X.getDegreesQuaternion((float) this.cubemap.getRotationControl().getPitch(time)));
matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion((float) this.cubemap.getRotationControl().getYaw(time)));
matrixStack.multiply(Vec3f.POSITIVE_Z.getDegreesQuaternion((float) this.cubemap.getRotationControl().getRoll(time)));
matrixStack.multiply(Vec3f.POSITIVE_X.getDegreesQuaternion((float) this.cubemap.getRotationControl().getPitch(cubemap.getRotationControl().isFrozen() ? 0.0D : time)));
matrixStack.multiply(Vec3f.POSITIVE_Y.getDegreesQuaternion((float) this.cubemap.getRotationControl().getYaw(cubemap.getRotationControl().isFrozen() ? 0.0D : time)));
matrixStack.multiply(Vec3f.POSITIVE_Z.getDegreesQuaternion((float) this.cubemap.getRotationControl().getRoll(cubemap.getRotationControl().isFrozen() ? 0.0D : time)));
RenderSystem.applyModelViewMatrix();

for (int k = 0; k < 6; ++k) {
Expand Down

0 comments on commit 23d67e7

Please sign in to comment.