Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / Project.html
diff options
context:
space:
mode:
1 files changed, 2 insertions, 4 deletions
-rw-r--r--Year 2/Computer Graphics with WebGL/Project/Project.html6
diff --git a/Year 2/Computer Graphics with WebGL/Project/Project.html b/Year 2/Computer Graphics with WebGL/Project/Project.html
index ab7e618..41f4943 100644
--- a/Year 2/Computer Graphics with WebGL/Project/Project.html
+++ b/Year 2/Computer Graphics with WebGL/Project/Project.html
@@ -104,16 +104,13 @@ h2 {
skybox = new Skybox(10000, [0,0,0], undefined);
stars = [
- new Star([1100,0,1000], 50),
+ new Star([1100,0,1000], 10),
// new Star([1000,0,900], 30),
// new Star([950,0,1100], 40),
];
// new Star([1000,0,-1000], 50)
// new Star([0,0,0], 100)
// new Star([1000, 0, -30], 20);
- for (var i = 0; i < starsBuf.length; i++) {
- gl.uniform4fv(gl.getUniformLocation(glprog, "uStars[" + i + "]"), starsBuf[i]);
- }
blackHole = new BlackHole([1000,0,900], 30);
for (var i = 0; i < blackHolesBuf.length; i++) {
@@ -139,6 +136,7 @@ h2 {
lookUpdate();
gl.uniform3fv(uEye, pos);
+ stars[0].moveTo(vecSum(stars[0].sphere.center, [-0.5,0,0]));
skybox.draw();
stars.forEach((s) => s.draw());