mirror of https://github.com/xemu-project/xemu.git
vsh: Minor improvements to individually weighted skinning
This commit is contained in:
parent
c331854c55
commit
1026f0e42f
|
@ -265,13 +265,12 @@ static void append_skinning_code(QString* str, bool mix,
|
||||||
}
|
}
|
||||||
qstring_append(str, "}\n");
|
qstring_append(str, "}\n");
|
||||||
} else {
|
} else {
|
||||||
/* Individual matrices */
|
/* Individual weights */
|
||||||
int i;
|
int i;
|
||||||
for (i = 0; i < count; i++) {
|
for (i = 0; i < count; i++) {
|
||||||
char c = "xyzw"[i];
|
char c = "xyzw"[i];
|
||||||
qstring_append_fmt(str, "%s += (%s * %s%d * weight.%c).%s;\n",
|
qstring_append_fmt(str, "%s += (%s * %s%d).%s * weight.%c;\n",
|
||||||
output, input, matrix, i, c,
|
output, input, matrix, i, swizzle, c);
|
||||||
swizzle);
|
|
||||||
}
|
}
|
||||||
assert(false); /* FIXME: Untested */
|
assert(false); /* FIXME: Untested */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue