diff options
[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.js | 2 |
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() { |
