diff options
[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.js | 1 |
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]; |
