diff --git a/library/voxel_surface.cpp b/library/voxel_surface.cpp index 3181dc4..ea67694 100644 --- a/library/voxel_surface.cpp +++ b/library/voxel_surface.cpp @@ -84,7 +84,7 @@ _FORCE_INLINE_ Vector2 VoxelSurface::transform_uv_scaled(const VoxelSurfaceSides Rect2 r = _rects[p_side]; float sizex = r.size.x / static_cast(p_max); - float sizey = r.size.x / static_cast(p_max); + float sizey = r.size.y / static_cast(p_max); uv.x *= sizex; uv.y *= sizey;