Fix for bug #8565: bug rendering tangent space normal map on

solid faces, caused by recent commit to solve spikes problem.
This commit is contained in:
Brecht Van Lommel
2008-03-15 16:29:49 +00:00
parent bb48a75c37
commit 2004e08964

View File

@@ -826,9 +826,9 @@ void shade_input_set_shade_texco(ShadeInput *shi)
else {
/* qdn: flat faces have tangents too,
could pick either one, using average here */
tl= 1.0f;
tu= 1.0f/3.0f;
tv= 1.0f/3.0f;
tl= 1.0f/3.0f;
tu= -1.0f/3.0f;
tv= -1.0f/3.0f;
}
shi->tang[0]= shi->tang[1]= shi->tang[2]= 0.0f;