Fixed a bug where texture coordinates and the coordinate system didnt match the expectations

This commit is contained in:
Krzosa Karol
2022-02-15 20:59:22 +01:00
parent d69180dbe6
commit 2680af2632
2 changed files with 59 additions and 35 deletions

4
math.h
View File

@@ -6,6 +6,10 @@ struct Mat4 {
float p[4][4];
};
struct Vec2 {
float x, y;
};
union Vec3 {
struct { float x, y, z; };
struct { float r, g, b; };