mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
add 'region', 'region-scale' properties
This commit is contained in:
parent
da107309ac
commit
27b194816b
2 changed files with 16 additions and 1 deletions
|
|
@ -53,6 +53,10 @@ struct UVRegion {
|
|||
v2 = cy + h * 0.5f * y;
|
||||
}
|
||||
|
||||
void scale(const glm::vec2& vec) {
|
||||
scale(vec.x, vec.y);
|
||||
}
|
||||
|
||||
void set(const glm::vec4& vec) {
|
||||
u1 = vec.x;
|
||||
v1 = vec.y;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue