Skip to content

Commit 14c379b

Browse files
author
kevyuu
committed
Fix rotation mat
1 parent 3840d5e commit 14c379b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/nbl/builtin/hlsl/math/linalg/transform.hlsl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ matrix<T, 4, 4> rotation_mat(T angle, vector<T, 3> const& axis)
4747
rotation[2][1] = temp[1] * axis[2] + s * axis[0];
4848
rotation[2][2] = c + temp[2] * axis[2];
4949

50+
rotation[3][3] = 1;
51+
5052
return rotation;
5153
}
5254

0 commit comments

Comments
 (0)