mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-11-22 02:19:44 +00:00
add 'uv-lock' block property
This commit is contained in:
parent
c2777eba09
commit
463a439089
8 changed files with 131 additions and 12 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue