mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-14 14:33:57 +01:00
fix rotating stuff on contraptions
This commit is contained in:
parent
1de931a122
commit
751fc7192d
@ -53,7 +53,7 @@ mat4 kineticRotation() {
|
|||||||
float degrees = offset + time * speed * -3/10;
|
float degrees = offset + time * speed * -3/10;
|
||||||
float angle = fract(degrees / 360) * PI * 2;
|
float angle = fract(degrees / 360) * PI * 2;
|
||||||
|
|
||||||
return rotate(vec3(0, 1, 0), angle);
|
return rotate(rotationAxis, angle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user