chore(1): Invert rotation direction
This commit is contained in:
parent
385a06f531
commit
0afa923678
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ mat4 model(bool is_moon, float time)
|
|||
float r = 2.0;
|
||||
float full_rotation = 2 * M_PI;
|
||||
float theta = full_rotation * time / 4.0;
|
||||
// Invert rotation
|
||||
theta = -theta;
|
||||
|
||||
float x = r * cos(theta);
|
||||
float z = r * sin(theta);
|
||||
|
|
Reference in a new issue