Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
Commit7c1aa8b8aac9a61eb52116a5b7f16ba1013b8453 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-08-27 16:24:39 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-08-27 16:24:39 +0300
Files49258a66a4acbe92e8a7b4ca692b0b0e3d9ffe7c
uni-projects-7c1aa8b8aac9a61eb52116a5b7f16ba1013b8453.tar
uni-projects-7c1aa8b8aac9a61eb52116a5b7f16ba1013b8453.tar.gz
uni-projects-7c1aa8b8aac9a61eb52116a5b7f16ba1013b8453.zip
Parentd31ecfbf0e16069163e82ee33f815174de2391f6 (diff)
[WGL/P] Added a second level
1 files changed, 7 insertions, 0 deletions
-rw-r--r--Year 2/Computer Graphics with WebGL/Project/level.js7
diff --git a/Year 2/Computer Graphics with WebGL/Project/level.js b/Year 2/Computer Graphics with WebGL/Project/level.js
index 7f4120a..0172175 100644
--- a/Year 2/Computer Graphics with WebGL/Project/level.js
+++ b/Year 2/Computer Graphics with WebGL/Project/level.js
@@ -37,4 +37,11 @@ function createLevels() {
[1000,0,650]);
l1.addStar([1100,0,1000], 10, (t, star) => [1100 -100 * (1 + Math.sin(t/300 + 1.5 * Math.PI)),0,1000]);
l1.addBlackHole([1000,0,900], 30, undefined);
+
+ var l2 = new Level(
+ "Star gets closer to event horizon",
+ "As the star passes by behind the black hole, we can see it approaching the event horizon, however, it will never truly reach it and dissapear (at least until it's width becomes smaller than a pixel).",
+ [1014,0,892]);
+ l2.addStar([1100,0,1000], 10, (t, star) => vecSum(star.sphere.center, [-1,0,0]));
+ l2.addBlackHole([1000,0,900], 30, undefined);
}