RotatingCube: Clarify a few things

This commit is contained in:
John 2022-07-12 14:17:25 -05:00
parent e0f68d7ff5
commit c80602b806
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>Draw cube with specification of face color</title>
<title>Draw orthographic cube with specification of face color, and rotate when buttons pressed</title>
</head>
<body onload="main()">

View File

@ -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() {