mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
render refactoring
This commit is contained in:
parent
89d9447410
commit
88280f8002
6 changed files with 59 additions and 47 deletions
|
|
@ -24,7 +24,17 @@ struct CoordSystem {
|
|||
glm::ivec3 fix;
|
||||
glm::ivec3 fix2;
|
||||
|
||||
CoordSystem() = default;
|
||||
CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ, glm::ivec3 fix);
|
||||
|
||||
void transform(AABB& aabb);
|
||||
|
||||
static bool CoordSystem::isVectorHasNegatives(glm::ivec3 vec) {
|
||||
if (vec.x < 0 || vec.y < 0 || vec.z < 0) {
|
||||
return true;
|
||||
}
|
||||
else return false;
|
||||
}
|
||||
};
|
||||
|
||||
struct BlockRotProfile {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue