diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2015-01-22 11:46:33 +0100 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2015-01-22 11:46:33 +0100 |
| commit | 4984215971e0c03a16e40b0c1703840bfa2cdab8 (patch) | |
| tree | a1321827a3267b04a64b42116661374bc6b868d4 /Source/Core/VideoCommon/VertexShaderGen.cpp | |
| parent | e7f2a04699c0e7e622028b4feba07fb6f46142bf (diff) | |
| parent | 0a9257ad37803c08178f4b242628e1d79a21251e (diff) | |
Merge pull request #1941 from NanoByte011/lighting_attn
Lighting Attenuation Fixes
Diffstat (limited to 'Source/Core/VideoCommon/VertexShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexShaderGen.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp index 2272ccc75c..d1fc126dab 100644 --- a/Source/Core/VideoCommon/VertexShaderGen.cpp +++ b/Source/Core/VideoCommon/VertexShaderGen.cpp @@ -176,7 +176,7 @@ static inline void GenerateVertexShader(T& out, u32 components, API_TYPE api_typ out.Write("o.pos = float4(dot(" I_PROJECTION"[0], pos), dot(" I_PROJECTION"[1], pos), dot(" I_PROJECTION"[2], pos), dot(" I_PROJECTION"[3], pos));\n"); out.Write("int4 lacc;\n" - "float3 ldir, h;\n" + "float3 ldir, h, cosAttn, distAttn;\n" "float dist, dist2, attn;\n"); uid_data->numColorChans = xfmem.numChan.numColorChans; |
