fix custom block models

This commit is contained in:
MihailRis
2024-11-07 07:27:29 +03:00
parent bbadaf7a19
commit 86b5f5d82b
2 changed files with 19 additions and 3 deletions
+1 -1
View File
@@ -38,6 +38,6 @@ struct UVRegion {
inline glm::vec2 apply(const glm::vec2& uv) {
float w = getWidth();
float h = getHeight();
return glm::vec2(u1 + uv.x / w, v1 + uv.y / h);
return glm::vec2(u1 + uv.x * w, v1 + uv.y * h);
}
};