From 7526ea8de723888211101278198dc7a454024b84 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 26 Aug 2023 16:14:05 +0300 Subject: [WGL/P] Implemented crude ray rotation around black holes --- Year 2/Computer Graphics with WebGL/Project/blackhole.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Year 2/Computer Graphics with WebGL/Project/blackhole.js') 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() { -- cgit v1.3.1-26-gb76a