Commit 3a2a9039 authored by Christopher Tenter's avatar Christopher Tenter
Browse files

normalization after normal transform refs #1306

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@15889 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f74f56e6
......@@ -561,7 +561,7 @@ void ShaderProgGenerator::addVertexBeginCode(QStringList* _code)
_code->push_back("vec4 sg_cColor = vec4(g_cEmissive, ALPHA);");
if (desc_.shadeMode != SG_SHADE_UNLIT)
_code->push_back("sg_vNormalVS = g_mWVIT * inNormal;");
_code->push_back("sg_vNormalVS = normalize(g_mWVIT * inNormal);");
if (desc_.textured)
_code->push_back("sg_vTexCoord = inTexCoord;");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment