diff options
| author | Tony Wasserka <NeoBrainX@gmail.com> | 2013-10-27 14:43:29 +0100 |
|---|---|---|
| committer | Tony Wasserka <NeoBrainX@gmail.com> | 2014-03-14 22:31:19 +0100 |
| commit | 3e6efdb53ec30fe65173c20ddbf97798f41ef7a7 (patch) | |
| tree | 3af0840e291ab7e3bb74d7e5b13f47a6c1a2a3ba /Source/Core/VideoCommon/PixelShaderGen.cpp | |
| parent | 387b9bf3c234a7b87a98c2b2066581c4aac13d96 (diff) | |
LightingShaderGen: Perform more lighting calculations with integers.
Diffstat (limited to 'Source/Core/VideoCommon/PixelShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/PixelShaderGen.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/PixelShaderGen.cpp b/Source/Core/VideoCommon/PixelShaderGen.cpp index c08386dd59..6baf6d0907 100644 --- a/Source/Core/VideoCommon/PixelShaderGen.cpp +++ b/Source/Core/VideoCommon/PixelShaderGen.cpp @@ -413,8 +413,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T out.Write("\tfloat3 _norm0 = normalize(Normal.xyz);\n\n"); out.Write("\tfloat3 pos = float3(clipPos.x,clipPos.y,Normal.w);\n"); - out.Write("\tfloat4 mat;\n" - "\tint4 lacc;\n" + out.Write("\tint4 lacc;\n" "\tfloat3 ldir, h;\n" "\tfloat dist, dist2, attn;\n"); |
