Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
VertexShaderGen: Fix a small GLSL regression in emboss mapping.
  • Loading branch information
NeoBrainX authored and NeoBrainX committed Apr 10, 2013
1 parent b30c5b0 commit 154c533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/VideoCommon/Src/VertexShaderGen.cpp
Expand Up @@ -417,7 +417,7 @@ const char *GenerateVertexShaderCode(u32 components, API_TYPE ApiType)

if (components & (VB_HAS_NRM1|VB_HAS_NRM2)) {
// transform the light dir into tangent space
WRITE(p, "ldir = normalize(" I_LIGHTS"[%d + 3].xyz - pos.xyz);\n", texinfo.embosslightshift);
WRITE(p, "ldir = normalize(" I_LIGHTS"[5*%d + 3].xyz - pos.xyz);\n", texinfo.embosslightshift);
WRITE(p, "o.tex%d.xyz = o.tex%d.xyz + float3(dot(ldir, _norm1), dot(ldir, _norm2), 0.0f);\n", i, texinfo.embosssourceshift);
}
else
Expand Down

0 comments on commit 154c533

Please sign in to comment.