Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / level.js
diff options
context:
space:
mode:
Commit91d5a6e02ebb1535026887d49da3ef2f48406519 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-08-28 15:35:33 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-08-28 15:35:33 +0300
Files9cd1494e4920dfd20628ebfbe9c1d0737751d509 /Year 2/Computer Graphics with WebGL/Project/level.js
uni-projects-91d5a6e02ebb1535026887d49da3ef2f48406519.tar
uni-projects-91d5a6e02ebb1535026887d49da3ef2f48406519.tar.gz
uni-projects-91d5a6e02ebb1535026887d49da3ef2f48406519.zip
Parent919051f1a0e03b0f28c7f8966ea3d02d088271e2 (diff)
[WGL/P/level] Reset looking direction upon load
1 files changed, 1 insertions, 0 deletions
-rw-r--r--Year 2/Computer Graphics with WebGL/Project/level.js1
diff --git a/Year 2/Computer Graphics with WebGL/Project/level.js b/Year 2/Computer Graphics with WebGL/Project/level.js
index 2c23ca0..6e10687 100644
--- a/Year 2/Computer Graphics with WebGL/Project/level.js
+++ b/Year 2/Computer Graphics with WebGL/Project/level.js
@@ -85,6 +85,7 @@ Level.prototype.load = function() {
blackHolesBuf = this.blackHolesBuf;
animations = this.animations;
pos = this.cameraCoords;
+ initCameraVectors();
for (var i = 0; i < STAR_MAX_COUNT; i++) {
var val = (i < starsBuf.length) ? starsBuf[i] : [0,0,0,0];