Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / blackhole.js
diff options
context:
space:
mode:
Commit7526ea8de723888211101278198dc7a454024b84 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-08-26 16:14:05 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-08-26 16:14:05 +0300
Filesbee44f2bbc84522979e172f824b76ecbed707401 /Year 2/Computer Graphics with WebGL/Project/blackhole.js
uni-projects-7526ea8de723888211101278198dc7a454024b84.tar
uni-projects-7526ea8de723888211101278198dc7a454024b84.tar.gz
uni-projects-7526ea8de723888211101278198dc7a454024b84.zip
Parent7994fe1a000768b6ad21997039ab5960d4c530af (diff)
[WGL/P] Implemented crude ray rotation around black holes
1 files changed, 1 insertions, 1 deletions
-rw-r--r--Year 2/Computer Graphics with WebGL/Project/blackhole.js2
diff --git a/Year 2/Computer Graphics with WebGL/Project/blackhole.js b/Year 2/Computer Graphics with WebGL/Project/blackhole.js
index 5093bc4..261a541 100644
--- a/Year 2/Computer Graphics with WebGL/Project/blackhole.js
+++ b/Year 2/Computer Graphics with WebGL/Project/blackhole.js
@@ -1,7 +1,7 @@
blackHolesBuf = [];
BlackHole = function(center, size) {
- this.rs = 2/3 * size;
+ this.rs = size / 3;
blackHolesBuf.push([center[0], center[1], center[2], this.rs]);
}
BlackHole.prototype.draw = function() {