mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 00:59:44 +00:00
ShaderGen: OGL: don't make a copy of "Normal"
This commit is contained in:
parent
0e0da8c8fd
commit
6109958e68
2 changed files with 3 additions and 7 deletions
|
@ -301,7 +301,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
|
|||
out.Write("centroid in float4 clipPos;\n");
|
||||
if (g_ActiveConfig.bEnablePixelLighting)
|
||||
{
|
||||
out.Write("centroid in float4 Normal_2;\n");
|
||||
out.Write("centroid in float4 Normal;\n");
|
||||
}
|
||||
|
||||
out.Write("void main()\n{\n");
|
||||
|
@ -349,10 +349,6 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
|
|||
out.Write("\tfloat3 uv%d = uv%d_2;\n", i, i);
|
||||
}
|
||||
}
|
||||
if (g_ActiveConfig.bEnablePixelLighting)
|
||||
{
|
||||
out.Write("\tfloat4 Normal = Normal_2;\n");
|
||||
}
|
||||
}
|
||||
|
||||
if (g_ActiveConfig.bEnablePixelLighting)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue