mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-14 22:44:07 +01:00
whoops everything was spinning backwards
This commit is contained in:
parent
c299e84512
commit
fd6e06b487
@ -18,7 +18,7 @@ struct Rotating {
|
|||||||
#flwinclude <"create:data/blockfragment.glsl">
|
#flwinclude <"create:data/blockfragment.glsl">
|
||||||
|
|
||||||
mat4 kineticRotation(float offset, float speed, vec3 axis) {
|
mat4 kineticRotation(float offset, float speed, vec3 axis) {
|
||||||
float degrees = offset + uTime * speed * 3./10.;
|
float degrees = offset + uTime * speed * -3./10.;
|
||||||
float angle = fract(degrees / 360.) * PI * 2.;
|
float angle = fract(degrees / 360.) * PI * 2.;
|
||||||
|
|
||||||
return rotate(axis, angle);
|
return rotate(axis, angle);
|
||||||
|
Loading…
Reference in New Issue
Block a user