-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
11 changed files
with
76 additions
and
33 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
void mx_creatematrix_vector3(vec3 in1, vec3 in2, vec3 in3, out mat3 result) | ||
{ | ||
result = mat3(in1.x, in1.y, in1.z, | ||
in2.x, in2.y, in2.z, | ||
in3.x, in3.y, in3.z); | ||
} | ||
|
||
void mx_creatematrix_vector4(vec4 in1, vec4 in2, vec4 in3, vec4 in4, out mat4 result) | ||
{ | ||
result = mat4(in1.x, in1.y, in1.z, in1.w, | ||
in2.x, in2.y, in2.z, in2.w, | ||
in3.x, in3.y, in3.z, in3.w, | ||
in4.x, in4.y, in4.z, in4.w); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "lib/matrix33.h" | ||
|
||
void mx_creatematrix_vector3(vector in1, vector in2, vector in3, out matrix33 result) | ||
{ | ||
result = matrix33.matrix44To33(matrix(in1.x, in1.y, in1.z, 0.0, | ||
in2.x, in2.y, in2.z, 0.0, | ||
in3.x, in3.y, in3.z, 0.0, | ||
0.0, 0.0, 0.0, 0.0)); | ||
} | ||
|
||
void mx_creatematrix_vector4(vector4 in1, vector4 in2, vector4 in3, vector4 in4, out matrix result) | ||
{ | ||
result = matrix(in1.x, in1.y, in1.z, in1.w, | ||
in2.x, in2.y, in2.z, in2.w, | ||
in3.x, in3.y, in3.z, in3.w, | ||
in4.x, in4.y, in4.z, in4.w); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters