mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
ShaderGen: OGL: don't make a copy of "Normal"
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user