Style + FIXME for assert

This commit is contained in:
Jannik Vogel 2015-07-16 14:44:08 +02:00
parent 8a43da637a
commit 915a1ed410
1 changed files with 4 additions and 2 deletions

View File

@ -2697,8 +2697,9 @@ static ShaderBinding* generate_shaders(const ShaderState state)
if (mix) { if (mix) {
/* Tweening */ /* Tweening */
if (count == 2) { if (count == 2) {
qstring_append(vertex_shader_code, "tPosition += mix(position * modelViewMat1," qstring_append(vertex_shader_code,
" position * modelViewMat0, weight.x);\n"); "tPosition += mix(position * modelViewMat1,"
" position * modelViewMat0, weight.x);\n");
} else { } else {
/* FIXME: Not sure how blend weights are calculated */ /* FIXME: Not sure how blend weights are calculated */
@ -2713,6 +2714,7 @@ static ShaderBinding* generate_shaders(const ShaderState state)
qstring_append_fmt(vertex_shader_code, "tNormal += (invModelViewMat%d * vec4(normal, 0.0) * weight.%c).xyz;\n", qstring_append_fmt(vertex_shader_code, "tNormal += (invModelViewMat%d * vec4(normal, 0.0) * weight.%c).xyz;\n",
i, c); i, c);
} }
assert(false); /* FIXME: Untested */
} }
} }