Skip to content

Commit

Permalink
[#82] ItemRender: Reversed changes for the next model
Browse files Browse the repository at this point in the history
  • Loading branch information
Danielxs01 committed May 10, 2023
1 parent 88bd04e commit e256c5e
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,12 @@ private static void renderBase(String itemId, RenderState state) {

}

state.rotate(-rotation.z, 0,0, 1);
state.rotate(-rotation.y, 0, 1, 0);
state.rotate(-rotation.x, 1, 0, 0);
state.translate(translate.scale(-1.0));
state.scale(1 / scale.x, 1 / scale.y, 1 / scale.z);

}
}
}
Expand Down Expand Up @@ -231,6 +237,12 @@ private static void renderSignals(String itemId, Map<String, String> itemGroupSt
}

}

state.rotate(-rotation.z, 0,0, 1);
state.rotate(-rotation.y, 0, 1, 0);
state.rotate(-rotation.x, 1, 0, 0);
state.translate(translate.scale(-1.0));
state.scale(1 / scale.x, 1 / scale.y, 1 / scale.z);
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,14 @@ private static void renderBase(String itemId, RenderState state) {
String groupCacheId = objId + "@" + String.join("+", groups);
vbo.draw(groupCache.get(groupCacheId));
}

vbo.restore();
}

state.rotate(-rotation.z, 0,0, 1);
state.rotate(-rotation.y, 0, 1, 0);
state.rotate(-rotation.x, 1, 0, 0);
state.translate(translate.scale(-1.0));
state.scale(1 / scale.x, 1 / scale.y, 1 / scale.z);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ private static void renderBase(String itemId, RenderState state) {
state.rotate(-rotation.y, 0, 1, 0);
state.rotate(-rotation.x, 1, 0, 0);
state.translate(translate.scale(-1.0));
state.scale(1 / scale.x, 1 / scale.y, 1 / scale.z);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ private static void renderBase(String itemId, RenderState state) {

}

state.rotate(-rotation.z, 0,0, 1);
state.rotate(-rotation.y, 0, 1, 0);
state.rotate(-rotation.x, 1, 0, 0);
state.translate(translate.scale(-1.0));
state.scale(1 / scale.x, 1 / scale.y, 1 / scale.z);

}
}
}
Expand Down

0 comments on commit e256c5e

Please sign in to comment.