• Create Account

### #ActualNumberXaero

Posted 29 November 2012 - 02:59 PM

If the vec3 represents a normal, you would take the upper left 3x3 and apply it, this removes any translation that might be stored in the 4x4 because you probably dont want to translate a normal. If the 4x4 matrix contains a translation and the vec3 represents a point, you could put the vec3 in a vec4 with w = 1, and apply the 4x4. If the vec3 is a normal you dont want to extract the upper left 3x3, store the vec3 in a vec4 with w = 0.

### #1NumberXaero

Posted 29 November 2012 - 02:58 PM

If the vec3 represents a normal, you would take the upper left 3x3 and apply it, this removes any translation that might be stored in the 4x4 because you probably dont want to translate a normal. If the 4x4 matrix contains a translation and the vec3 represents a point, you could but the vec3 in a vec4 with w = 1, and apply the 4x4. If the vec3 is a normal you dont want to extract the upper left 3x3, store the vec3 in a vec4 with w = 0.

PARTNERS