chore(1): Invert rotation direction

This commit is contained in:
Tibo De Peuter 2024-12-06 14:18:48 +01:00
parent 385a06f531
commit 0afa923678
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2

View file

@ -29,6 +29,8 @@ mat4 model(bool is_moon, float time)
float r = 2.0; float r = 2.0;
float full_rotation = 2 * M_PI; float full_rotation = 2 * M_PI;
float theta = full_rotation * time / 4.0; float theta = full_rotation * time / 4.0;
// Invert rotation
theta = -theta;
float x = r * cos(theta); float x = r * cos(theta);
float z = r * sin(theta); float z = r * sin(theta);