Fix T43273: vector math cross product inconsistent

GLSL missed the normalization step.

Reviewers: psy-fi, sergey, mont29

Reviewed By: mont29, sergey

Subscribers: mont29

Maniphest Tasks: T43273

Differential Revision: https://developer.blender.org/D1000
This commit is contained in:
Kévin Dietrich 2015-01-17 14:57:10 +01:00 committed by Bastien Montagne
parent 82223270a8
commit 448d143ad0
Notes: blender-bot 2023-02-14 09:36:42 +01:00
Referenced by issue #43273, vector math cross product inconsistent
1 changed files with 1 additions and 0 deletions

View File

@ -338,6 +338,7 @@ void vec_math_cross(vec3 v1, vec3 v2, out vec3 outvec, out float outval)
{
outvec = cross(v1, v2);
outval = length(outvec);
outvec /= outval;
}
void vec_math_normalize(vec3 v, out vec3 outvec, out float outval)