Skip to content

Commit

Permalink
fix rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
meeees committed Dec 31, 2019
1 parent 2ef35aa commit 2fd7202
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webgl/webgl.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ function drawScene(gl, programInfo, buffers, dt) {
const cube1Matrix = calcModelView([0.0, 0.0, -13.0], [rotation * 0.7, rotation * 0.7, 0]);
const cube2Matrix = calcModelView([3.5, 0.0, -13.0], [rotation * 0.7, -rotation * 0.7, 0]);
const cube3Matrix = calcModelView([-3.5, 0.0, -13.0], [-rotation * 0.7, rotation * 0.7, 0]);
const cube4Matrix = calcModelView([0.0, 3.5, -13.0], [-rotation * 0.7, rotation * 0.7, 0]);
const cube4Matrix = calcModelView([0.0, 3.5, -13.0], [rotation * 0.7, -rotation * 0.7, 0]);
const cube5Matrix = calcModelView([3.5, 3.5, -13.0], [-rotation * 0.7, rotation * 0.7, 0]);
const cube6Matrix = calcModelView([-3.5, 3.5, -13.0], [rotation * 0.7, rotation * 0.7, 0]);
const cube7Matrix = calcModelView([0.0, -3.5, -13.0], [-rotation * 0.7, rotation * 0.7, 0]);
Expand Down

0 comments on commit 2fd7202

Please sign in to comment.