From e21d7a6a0f239f4310cb3a23b7b96d5846bbf63d Mon Sep 17 00:00:00 2001 From: Syndamia Date: Mon, 28 Aug 2023 12:10:34 +0300 Subject: [WGL/P] Fixed "tearing" that can sometimes be seen when the camera is close to the event horizon --- Year 2/Computer Graphics with WebGL/Project/Project.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Year 2/Computer Graphics with WebGL/Project/Project.html') 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++; -- cgit v1.3.1-23-gd82d