diff options
| author | Anthony <Helios747@users.noreply.github.com> | 2017-11-21 20:17:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-21 20:17:18 -0800 |
| commit | 066471be076994ea8538d13e8d6979609193a2de (patch) | |
| tree | 6be0e38fd495292ee5f5d63471732164254cccac /Source/Core/VideoCommon/LightingShaderGen.cpp | |
| parent | f2f50d4fe5e0f97d36d6d132f40516ad6174601f (diff) | |
| parent | efb97598629b96378edd783af82936185d8a99ce (diff) | |
Merge pull request #4601 from stenzek/celdamage-lighting
ShaderGen: Always calculate lighting for both color channels
Diffstat (limited to 'Source/Core/VideoCommon/LightingShaderGen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/LightingShaderGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/VideoCommon/LightingShaderGen.cpp b/Source/Core/VideoCommon/LightingShaderGen.cpp index b5556214f0..4139018552 100644 --- a/Source/Core/VideoCommon/LightingShaderGen.cpp +++ b/Source/Core/VideoCommon/LightingShaderGen.cpp @@ -79,9 +79,9 @@ static void GenerateLightShader(ShaderCode& object, const LightingUidData& uid_d // inColorName is color in vs and colors_ in ps // dest is o.colors_ in vs and colors_ in ps void GenerateLightingShaderCode(ShaderCode& object, const LightingUidData& uid_data, int components, - u32 numColorChans, const char* inColorName, const char* dest) + const char* inColorName, const char* dest) { - for (unsigned int j = 0; j < numColorChans; j++) + for (unsigned int j = 0; j < NUM_XF_COLOR_CHANNELS; j++) { object.Write("{\n"); @@ -185,7 +185,7 @@ void GenerateLightingShaderCode(ShaderCode& object, const LightingUidData& uid_d void GetLightingShaderUid(LightingUidData& uid_data) { - for (unsigned int j = 0; j < xfmem.numChan.numColorChans; j++) + for (unsigned int j = 0; j < NUM_XF_COLOR_CHANNELS; j++) { uid_data.matsource |= xfmem.color[j].matsource << j; uid_data.matsource |= xfmem.alpha[j].matsource << (j + 2); |
