diff options
author | Jorn Van denbussche <jorn.vandenbussche@ugent.be> | 2018-07-16 14:30:30 +0200 |
---|---|---|
committer | Jorn Van denbussche <jorn.vandenbussche@ugent.be> | 2018-07-16 14:30:30 +0200 |
commit | 28aa9a1d6d43fc2780f7152ee5b96bbb2567ce7d (patch) | |
tree | 05bd0c61218a703937dd964300f9c443615db75f /scene | |
parent | c0c243ac5c0a8b03a64fdb18b0e647ae6427279c (diff) |
More accurate UV round begin cap
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/line_builder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/line_builder.cpp b/scene/2d/line_builder.cpp index 845788bada..8aa4d7a314 100644 --- a/scene/2d/line_builder.cpp +++ b/scene/2d/line_builder.cpp @@ -170,7 +170,7 @@ void LineBuilder::build() { if (texture_mode == Line2D::LINE_TEXTURE_TILE) { uvx0 = 0.5f / tile_aspect; } - new_arc(pos0, pos_up0 - pos0, -Math_PI, color0, Rect2(0.f, 0.f, 1.f, 1.f)); + new_arc(pos0, pos_up0 - pos0, -Math_PI, color0, Rect2(0.f, 0.f, fmin(uvx0 * 2, 1.f), 1.f)); total_distance += width; current_distance0 += hw; current_distance1 = current_distance0; |