RotatingCube: Clarify a few things
This commit is contained in:
parent
e0f68d7ff5
commit
c80602b806
@ -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()">
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user