From c80602b806d9c0539994a1445bbde27e5044c1c4 Mon Sep 17 00:00:00 2001 From: John Breaux Date: Tue, 12 Jul 2022 14:17:25 -0500 Subject: [PATCH] RotatingCube: Clarify a few things --- RotatingCube/RotatingCube.html | 2 +- RotatingCube/RotatingCube.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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() {