From d26722a23fa4ccb09db1c35f02cd13470a9ee988 Mon Sep 17 00:00:00 2001 From: blonkm Date: Wed, 13 May 2015 08:11:20 -0400 Subject: [PATCH] Too much blank space around the cube How the cube is shown is a combination of - eye: where the camera is located - fov: how close up we see the cube (zoom) - perspectiveview: the angle at which the cube is positioned (x,y,z angles) Closes #23 --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 294ab6e..f73698a 100644 --- a/index.html +++ b/index.html @@ -25,7 +25,7 @@ uniform highp vec4 specular; uniform highp float shininess; - const highp vec4 lightPosition = vec4(0, -3, -6, 1); // point light + const highp vec4 lightPosition = vec4(-20, -20, -20, 1); // point light const highp vec4 lightColor = vec4(1, 1, 1, 1); void main(void) { @@ -126,8 +126,8 @@
A WebGL Rubik's Cube
-
- +
+