stackgl / shader-school

:mortar_board: A workshopper for GLSL shaders and graphics programming
Other
4.28k stars 252 forks source link

intro-6 wrong answer given for mat multiplication example #122

Closed jarav closed 8 years ago

jarav commented 9 years ago

In the content for this lesson, towards the end this is given:

mat2 m = mat2(1, 2, 3, 4);

vec2 v = m * vec2(1, 2); //v = vec2(5, 8)

The answer should be //v = vec2(7, 10)

Also in this line:

vec2 u = vec2(1, 2) * m; //u = vec2(7, 10)

The answer should be //u = vec2(5, 11)

abacon commented 8 years ago

FYI: Duplicate of #137. There's an outstanding PR, #138.