Skip to content

Commit

Permalink
rotation correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
palasjir committed Dec 27, 2017
1 parent 54ed9c2 commit 6c5fe4c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/palasjir/viewer/ui/VisualizationPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ public VisualizationPanel(Dimension dimension) throws GLException {

volumeData = new VolumeData();

model = new Mat4(1.0f);
Mat4 rot = Matrices.rotate(90.0f, new Vec3(1.0f, 0.0f, 0.0f));
model = model.multiply(rot);

model = new Mat4(1.0f);
model = rot.multiply(model);
model = model.translate(new Vec3(-0.5f, -0.5f, -0.5f));
}

Expand Down

0 comments on commit 6c5fe4c

Please sign in to comment.