Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / Project.html
diff options
context:
space:
mode:
Commite21d7a6a0f239f4310cb3a23b7b96d5846bbf63d (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-08-28 12:10:34 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-08-28 12:10:34 +0300
Filesbecf7bf957d71886fee78ea718750bb65780dc7d /Year 2/Computer Graphics with WebGL/Project/Project.html
uni-projects-e21d7a6a0f239f4310cb3a23b7b96d5846bbf63d.tar
uni-projects-e21d7a6a0f239f4310cb3a23b7b96d5846bbf63d.tar.gz
uni-projects-e21d7a6a0f239f4310cb3a23b7b96d5846bbf63d.zip
Parentce3ddd0ac87e9642851759a92fc99b24339533f6 (diff)
[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.html2
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++;