Fix breaking animation rendering incorrectly with overlay

This commit is contained in:
tterrag1098 committed 2015-03-18 17:21:14 -04:00
1 parent 6082285fd7
commit 9f9a5e39a6
3 files changed
+9 -19

No files matched your search

@@ -223,6 +223,8 @@ public class TechneUtil {
for (int i = 0; i < f.vertices.length; i++) {
Vertex vert = f.vertices[i];
Vector3d v = new Vector3d(vert);
Vector3d tv = new Vector3d(v);
tv.add(0.5, 0, 0.5);
if(vt != null) {
vt.apply(v);
}
@@ -233,9 +235,7 @@ public class TechneUtil {
tes.setColorOpaque(c, c, c);
if(override != null) {
Vector3d tv = new Vector3d(v);
tv.add(0.5, 0, 0.5);
double interpX = Math.abs(tv.x * right.offsetX + tv.y * right.offsetY + tv.z * right.offsetZ);
double interpY = Math.abs(tv.x * down.offsetX + tv.y * down.offsetY + tv.z * down.offsetZ);