feat: process external custom block models for variable textures

This commit is contained in:
MihailRis
2025-05-02 15:12:01 +03:00
parent 43c76c92ff
commit 9a0f6b23b0
4 changed files with 81 additions and 21 deletions
+8
View File
@@ -2,6 +2,7 @@
#include <cmath>
#include <glm/vec2.hpp>
#include <glm/vec4.hpp>
struct UVRegion {
float u1;
@@ -51,4 +52,11 @@ struct UVRegion {
u2 = cx + w * 0.5f * x;
v2 = cy + h * 0.5f * y;
}
void set(const glm::vec4& vec) {
u1 = vec.x;
v1 = vec.y;
u2 = vec.z;
v2 = vec.w;
}
};