This commit is contained in:
MihailRis
2024-05-06 01:27:24 +03:00
parent 9ea67deb13
commit 6b037ec7e8
19 changed files with 57 additions and 46 deletions
@@ -1,3 +1,6 @@
#ifndef MATHS_FRUSTUM_CULLING_HPP_
#define MATHS_FRUSTUM_CULLING_HPP_
#include <glm/matrix.hpp>
class Frustum
@@ -110,4 +113,6 @@ inline glm::vec3 Frustum::intersection(const glm::vec3* crosses) const
glm::vec3 res = glm::mat3(crosses[ij2k<b, c>::k], -crosses[ij2k<a, c>::k], crosses[ij2k<a, b>::k]) *
glm::vec3(m_planes[a].w, m_planes[b].w, m_planes[c].w);
return res * (-1.0f / D);
}
}
#endif // MATHS_FRUSTUM_CULLING_HPP_
+1 -1
View File
@@ -1,4 +1,4 @@
#include "LMPacker.h"
#include "LMPacker.hpp"
#include <algorithm>
@@ -1,9 +1,7 @@
/*
C++ LMPacker port
https://github.com/MihailRis/LMPacker
*/
#ifndef LMPACKER_H_
#define LMPACKER_H_
/// C++ LMPacker port
/// https://github.com/MihailRis/LMPacker
#ifndef LMPACKER_HPP_
#define LMPACKER_HPP_
#include <stdlib.h>
#include <stdint.h>
@@ -50,4 +48,4 @@ public:
}
};
#endif /* LMPACKER_H_ */
#endif // LMPACKER_HPP_