diff --git a/src/main/java/net/landofrails/landofsignals/render/item/ItemComplexSignalRender.java b/src/main/java/net/landofrails/landofsignals/render/item/ItemComplexSignalRender.java index 51665d22..0062c210 100644 --- a/src/main/java/net/landofrails/landofsignals/render/item/ItemComplexSignalRender.java +++ b/src/main/java/net/landofrails/landofsignals/render/item/ItemComplexSignalRender.java @@ -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); + } } } @@ -231,6 +237,12 @@ private static void renderSignals(String itemId, Map 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); } } diff --git a/src/main/java/net/landofrails/landofsignals/render/item/ItemDecoRender.java b/src/main/java/net/landofrails/landofsignals/render/item/ItemDecoRender.java index 3117a585..bc808b63 100644 --- a/src/main/java/net/landofrails/landofsignals/render/item/ItemDecoRender.java +++ b/src/main/java/net/landofrails/landofsignals/render/item/ItemDecoRender.java @@ -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); } } } diff --git a/src/main/java/net/landofrails/landofsignals/render/item/ItemSignPartRender.java b/src/main/java/net/landofrails/landofsignals/render/item/ItemSignPartRender.java index d0c2a43a..f6fbd7d0 100644 --- a/src/main/java/net/landofrails/landofsignals/render/item/ItemSignPartRender.java +++ b/src/main/java/net/landofrails/landofsignals/render/item/ItemSignPartRender.java @@ -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); } } } diff --git a/src/main/java/net/landofrails/landofsignals/render/item/ItemSignalBoxRender.java b/src/main/java/net/landofrails/landofsignals/render/item/ItemSignalBoxRender.java index 0897e218..510a7da5 100644 --- a/src/main/java/net/landofrails/landofsignals/render/item/ItemSignalBoxRender.java +++ b/src/main/java/net/landofrails/landofsignals/render/item/ItemSignalBoxRender.java @@ -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); + } } }