Skip to content

Commit

Permalink
Tweak indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
leikareipa committed Jan 16, 2019
1 parent e2431c2 commit 28ddc59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -84,8 +84,8 @@ Below is a more simplified, step-by-step guide. It'll render a single triangle o
(function render_loop(frameCount = 0)
{
Rngon.render("render-canvas",
[rotatingTriangle(frameCount)],
Rngon.translation_vector(0, 0, 3));
[rotatingTriangle(frameCount)],
Rngon.translation_vector(0, 0, 3));

window.requestAnimationFrame(()=>render_loop(frameCount + 1));
})();
Expand Down
4 changes: 2 additions & 2 deletions js/retro-ngon/matrix44.js
Expand Up @@ -62,9 +62,9 @@ Rngon.matrix44 = (()=>
0, Math.sin(x), Math.cos(x), 0,
0, 0, 0, 1];

const my = [Math.cos(y), 0, Math.sin(y), 0,
const my = [Math.cos(y), 0, Math.sin(y), 0,
0, 1, 0, 0,
-Math.sin(y), 0, Math.cos(y), 0,
-Math.sin(y), 0, Math.cos(y), 0,
0, 0, 0, 1];

const mz = [Math.cos(z), -Math.sin(z), 0, 0,
Expand Down

0 comments on commit 28ddc59

Please sign in to comment.