Add more comments

This commit is contained in:
gingerBill
2021-11-04 14:25:34 +00:00
parent a882118c56
commit eb05879148
+5 -1
View File
@@ -19,6 +19,7 @@ LN10 :: 2.30258509299404568401799145468436421
F32_EPSILON :: 1e-7 F32_EPSILON :: 1e-7
// Odin matrices are stored internally as Column-Major, which matches OpenGL/GLSL by default
mat2 :: distinct matrix[2, 2]f32 mat2 :: distinct matrix[2, 2]f32
mat3 :: distinct matrix[3, 3]f32 mat3 :: distinct matrix[3, 3]f32
mat4 :: distinct matrix[4, 4]f32 mat4 :: distinct matrix[4, 4]f32
@@ -26,7 +27,10 @@ mat2x2 :: mat2
mat3x3 :: mat3 mat3x3 :: mat3
mat4x4 :: mat4 mat4x4 :: mat4
// Should this be renamed the other way around? // IMPORTANT NOTE: These data types are "backwards" in normal mathematical terms
// but they match how GLSL and OpenGL defines them in name
// Odin: matrix[R, C]f32
// GLSL: matCxR
mat3x2 :: distinct matrix[2, 3]f32 mat3x2 :: distinct matrix[2, 3]f32
mat4x2 :: distinct matrix[2, 4]f32 mat4x2 :: distinct matrix[2, 4]f32
mat2x3 :: distinct matrix[3, 2]f32 mat2x3 :: distinct matrix[3, 2]f32