may have fixed a bug where tabbing out makes a gap in the animation. Needs further testing

This commit is contained in:
2025-01-06 00:54:25 +01:00
parent 72a56789e0
commit c75c120383
2 changed files with 22 additions and 6 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ const scene = new THREE.Scene()
const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000)
const renderer = new THREE.WebGLRenderer({ alpha: true })
// TODO: when tabbing out it sometimes doesnt pause the animation
// TODO: when tabbing out it sometimes doesnt pause the animation (maybe fixed? Needs more testing)
// TODO: add pixelation shader
if (!renderer) {