AABB blocks render simplified
This commit is contained in:
+3
-3
@@ -28,14 +28,14 @@ struct CoordSystem {
|
||||
glm::ivec3 axisX;
|
||||
glm::ivec3 axisY;
|
||||
glm::ivec3 axisZ;
|
||||
|
||||
// Grid 3d position fix offset (for negative vectors)
|
||||
glm::ivec3 fix;
|
||||
glm::ivec3 fix2;
|
||||
|
||||
CoordSystem() = default;
|
||||
CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ, glm::ivec3 fix);
|
||||
CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ);
|
||||
|
||||
void transform(AABB& aabb);
|
||||
void transform(AABB& aabb) const;
|
||||
|
||||
static bool isVectorHasNegatives(glm::ivec3 vec) {
|
||||
if (vec.x < 0 || vec.y < 0 || vec.z < 0) {
|
||||
|
||||
Reference in New Issue
Block a user