Skip to content

Commit

Permalink
fix x-axis
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Jan 7, 2024
1 parent 8121570 commit db4ea5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webgpu/lessons/webgpu-cameras.js
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ function crossProductDiagram(elem, mode) {
yAxisUniforms.u_color = flash ? ltGreen : flashColor;
drawModel(axisProgramInfo, axisBufferInfo, gl.TRIANGLES, yAxisUniforms, m4t0);
}
m4.rotationZ(Math.PI / 2, m4t1);
m4.rotationZ(Math.PI / -2, m4t1);
m4.multiply(m4t0, m4t1, world);
if (mode === 1) {
xAxisUniforms.u_color = flash ? ltRed : flashColor;
Expand Down

0 comments on commit db4ea5f

Please sign in to comment.