on master help sign in
Merge pull request #626 from codecurve/webgl

Fix matrix vector multiplication in webgl Crate example.

commit624d4fe9771d36997aba5f8ba50ad087dca41c5c authorEvan Czaplicki <info@elm-lang.org> dateTue 6 May 2014, 20:40 (12 years ago) parent8b6b119d1352d9
1 file changed+1−1
tests/compiler/test-files/good/Crate.elm+1−1
tests/compiler/test-files/good/Crate.elm+1−1
@@ -17,7 +17,7 @@ rotatedFace (angleX,angleY) =
1717 y = makeRotate (degrees angleY) (v3 0 1 0)
1818 t = x `mul` y `mul` makeTranslate (v3 0 0 1)
1919 in
20− map (mapTriangle (\x -> {x | pos <- mul4x4 t x.pos })) face
20+ map (mapTriangle (\x -> {x | pos <- mulVec3 t x.pos })) face
2121
2222face : [Triangle { pos:Vec3, coord:Vec3 }]
2323face =