mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-04 01:21:54 +00:00
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");
|
||||
} else {
|
||||
/* Individual matrices */
|
||||
/* Individual weights */
|
||||
int i;
|
||||
for (i = 0; i < count; i++) {
|
||||
char c = "xyzw"[i];
|
||||
qstring_append_fmt(str, "%s += (%s * %s%d * weight.%c).%s;\n",
|
||||
output, input, matrix, i, c,
|
||||
swizzle);
|
||||
qstring_append_fmt(str, "%s += (%s * %s%d).%s * weight.%c;\n",
|
||||
output, input, matrix, i, swizzle, c);
|
||||
}
|
||||
assert(false); /* FIXME: Untested */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user