From 751fc7192d1a9cbe319d9d964e506405f6b7bb2d Mon Sep 17 00:00:00 2001 From: JozsefA Date: Thu, 28 Jan 2021 23:59:58 -0800 Subject: [PATCH] fix rotating stuff on contraptions --- .../resources/assets/create/shader/contraption_rotating.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/assets/create/shader/contraption_rotating.vert b/src/main/resources/assets/create/shader/contraption_rotating.vert index adf818290..6506bdd09 100644 --- a/src/main/resources/assets/create/shader/contraption_rotating.vert +++ b/src/main/resources/assets/create/shader/contraption_rotating.vert @@ -53,7 +53,7 @@ mat4 kineticRotation() { float degrees = offset + time * speed * -3/10; float angle = fract(degrees / 360) * PI * 2; - return rotate(vec3(0, 1, 0), angle); + return rotate(rotationAxis, angle); } void main() {