summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-04-17 16:59:54 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-04-17 16:59:54 +0200
commitec89df61da28a83eb1c00e3e27d69fa1421230f4 (patch)
tree55a901b04c0421a0d4d422e0f7e4c8b40f33fa87
parent35978072c44f5ec84417da43904e7dad879fc5a4 (diff)
pose-widget: interpolate next in world coordinate space
The next value was chosen in view space.
-rw-r--r--pose-widget/pose-widget.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/pose-widget/pose-widget.cpp b/pose-widget/pose-widget.cpp
index 8f4c4a1b..a7da830a 100644
--- a/pose-widget/pose-widget.cpp
+++ b/pose-widget/pose-widget.cpp
@@ -282,8 +282,6 @@ void pose_transform::project_quad_texture()
return;
}
- const vec3 next = rotation * vec3(1, 1, 0);
-
for (int y = 1; y < sy; y++)
for (int x = 1; x < sx; x++)
{
@@ -299,8 +297,8 @@ void pose_transform::project_quad_texture()
+ uv.x() * origs[i][2].y()
+ uv.y() * origs[i][1].y();
- const int px_ = fx + next.x();
- const int py_ = fy + next.y();
+ const int px_ = fx + 1;
+ const int py_ = fy + 1;
const int px = fx;
const int py = fy;
const float ax_ = fx - px;