diff options
[WGL/P] Fixed "tearing" that can sometimes be seen when the camera is close to the event horizon
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | Year 2/Computer Graphics with WebGL/Project/Project.html | 2 |
diff --git a/Year 2/Computer Graphics with WebGL/Project/Project.html b/Year 2/Computer Graphics with WebGL/Project/Project.html index 5aa4252..02a2818 100644 --- a/Year 2/Computer Graphics with WebGL/Project/Project.html +++ b/Year 2/Computer Graphics with WebGL/Project/Project.html @@ -155,8 +155,8 @@ body > div { updateCamera();
gl.uniform3fv(uEye, pos);
- skybox.draw();
if (!pauseAnimations || t == 0) animations.forEach((a) => a(t));
+ skybox.draw();
stars.forEach((s) => s.draw());
frames++;
|
