Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / Project.html
diff options
context:
space:
mode:
Commit87e9c9fa25b21bec3a658dcebc6c765a511d838e (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-08-27 11:44:43 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-08-27 11:44:43 +0300
Files5727bac04d65259a23267300dd9ff9a20a45554b /Year 2/Computer Graphics with WebGL/Project/Project.html
uni-projects-87e9c9fa25b21bec3a658dcebc6c765a511d838e.tar
uni-projects-87e9c9fa25b21bec3a658dcebc6c765a511d838e.tar.gz
uni-projects-87e9c9fa25b21bec3a658dcebc6c765a511d838e.zip
Parent35fce31dd69c7a3524d1455dfe8c3244a3bbc630 (diff)
[WGL/P] Slight code reorganisation, moved buffer logic for black holes in BlackHole and exported count limits as global variables
1 files changed, 3 insertions, 4 deletions
-rw-r--r--Year 2/Computer Graphics with WebGL/Project/Project.html7
diff --git a/Year 2/Computer Graphics with WebGL/Project/Project.html b/Year 2/Computer Graphics with WebGL/Project/Project.html
index 41f4943..4c88553 100644
--- a/Year 2/Computer Graphics with WebGL/Project/Project.html
+++ b/Year 2/Computer Graphics with WebGL/Project/Project.html
@@ -112,10 +112,9 @@ h2 {
// new Star([0,0,0], 100)
// new Star([1000, 0, -30], 20);
- blackHole = new BlackHole([1000,0,900], 30);
- for (var i = 0; i < blackHolesBuf.length; i++) {
- gl.uniform4fv(gl.getUniformLocation(glprog, "uBH[" + i + "]"), blackHolesBuf[i]);
- }
+ blackHoles = [
+ new BlackHole([1000,0,900], 30)
+ ];
resizeglcanvas();
}