Fixed potential shader bug

Former-commit-id: 5309ae4ab70cd7d2f8d29c8e21efacdd9e26cc06
This commit is contained in:
Lynix 2013-07-02 12:57:56 +02:00
parent 43b455bacd
commit 321d4df911
1 changed files with 3 additions and 3 deletions

View File

@ -366,7 +366,7 @@ namespace
} }
if (uvMapping) if (uvMapping)
sourceCode += inKW + " vec2 VertexTexCoord0;\n"; sourceCode += inKW + " vec2 VertexTexCoord;\n";
sourceCode += '\n'; sourceCode += '\n';
@ -429,9 +429,9 @@ namespace
if (uvMapping) if (uvMapping)
{ {
if (flags & nzShaderFlags_FlipUVs) if (flags & nzShaderFlags_FlipUVs)
sourceCode += "vTexCoord = vec2(VertexTexCoord0.x, 1.0 - VertexTexCoord0.y);\n"; sourceCode += "vTexCoord = vec2(VertexTexCoord.x, 1.0 - VertexTexCoord.y);\n";
else else
sourceCode += "vTexCoord = VertexTexCoord0;\n"; sourceCode += "vTexCoord = VertexTexCoord;\n";
} }
if (flags & nzShaderFlags_Lighting) if (flags & nzShaderFlags_Lighting)