summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/PixelShaderGen.cpp
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2015-01-22 11:46:33 +0100
committerPierre Bourdon <delroth@gmail.com>2015-01-22 11:46:33 +0100
commit4984215971e0c03a16e40b0c1703840bfa2cdab8 (patch)
treea1321827a3267b04a64b42116661374bc6b868d4 /Source/Core/VideoCommon/PixelShaderGen.cpp
parente7f2a04699c0e7e622028b4feba07fb6f46142bf (diff)
parent0a9257ad37803c08178f4b242628e1d79a21251e (diff)
Merge pull request #1941 from NanoByte011/lighting_attn
Lighting Attenuation Fixes
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
-rw-r--r--Source/Core/VideoCommon/PixelShaderGen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp
index 3567be8bd8..edc67cc83c 100644
--- a/Source/Core/VideoCommon/PixelShaderGen.cpp
+++ b/Source/Core/VideoCommon/PixelShaderGen.cpp
@@ -401,7 +401,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
out.Write("\tfloat3 pos = WorldPos;\n");
out.Write("\tint4 lacc;\n"
- "\tfloat3 ldir, h;\n"
+ "\tfloat3 ldir, h, cosAttn, distAttn;\n"
"\tfloat dist, dist2, attn;\n");
// TODO: Our current constant usage code isn't able to handle more than one buffer.