add 'uv-lock' block property

This commit is contained in:
MihailRis 2026-11-02 00:03:25 +03:00
parent c2777eba09
commit 463a439089
8 changed files with 131 additions and 12 deletions

View file

@ -35,7 +35,7 @@ struct UVRegion {
v2 = v1 + uvh * h;
}
inline glm::vec2 apply(const glm::vec2& uv) {
glm::vec2 apply(const glm::vec2& uv) const {
float w = getWidth();
float h = getHeight();
return glm::vec2(u1 + uv.x * w, v1 + uv.y * h);