diff --git a/RotatingCube/RotatingCube.html b/RotatingCube/RotatingCube.html index a581241..08b1471 100644 --- a/RotatingCube/RotatingCube.html +++ b/RotatingCube/RotatingCube.html @@ -3,7 +3,7 @@ - Draw cube with specification of face color + Draw orthographic cube with specification of face color, and rotate when buttons pressed diff --git a/RotatingCube/RotatingCube.js b/RotatingCube/RotatingCube.js index ef485d8..0c3db0c 100644 --- a/RotatingCube/RotatingCube.js +++ b/RotatingCube/RotatingCube.js @@ -25,7 +25,9 @@ const fragment_shader = ` gl_FragColor = v_Color; } `; +// gl = WebGL context, n = # vertices var gl, n; +// v_rotate: {x: pitch, y: yaw, z: roll} var v_rotate = {x: 0, y:0, z:0}; function main() {