RotatingCube: Clean up debug printfs

This commit is contained in:
John 2022-07-12 14:20:53 -05:00
parent c80602b806
commit 6a0bf31c9c

View File

@ -174,9 +174,7 @@ function initArrayBuffer(gl, data, num, type, attribute) {
function rotate(axis) { function rotate(axis) {
if (axis in v_rotate) { if (axis in v_rotate) {
v_rotate[axis] += 15.0; v_rotate[axis] += 15.0;
v_rotate[axis] %= 360; // bound to [0, 360) v_rotate[axis] %= 360; // bound to [0, 360)\
console.log(`${axis} = ${v_rotate[axis]}`);
} }
draw(gl); draw(gl);
} }