fix maths warning
This commit is contained in:
@@ -41,11 +41,11 @@ Mat4f LookAt(const Vec3f& eye, const Vec3f& center, const Vec3f& up) {
|
||||
Mat4f Dot(const Mat4f& mat, const Mat4f& other) {
|
||||
Mat4f result {};
|
||||
|
||||
static const int MAT_SIZE = 4;
|
||||
static const std::size_t MAT_SIZE = 4;
|
||||
|
||||
for (int i = 0; i < MAT_SIZE; i++) {
|
||||
for (int j = 0; j < MAT_SIZE; j++) {
|
||||
for (int k = 0; k < MAT_SIZE; k++) {
|
||||
for (std::size_t i = 0; i < MAT_SIZE; i++) {
|
||||
for (std::size_t j = 0; j < MAT_SIZE; j++) {
|
||||
for (std::size_t k = 0; k < MAT_SIZE; k++) {
|
||||
result[i * MAT_SIZE + j] += mat[i * MAT_SIZE + k] * other[k * MAT_SIZE + j];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user