mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-06 08:09:19 +00:00
Fix PixelShaderGen from the previous commit.
This commit is contained in:
parent
26c38648ec
commit
c054049712
1 changed files with 3 additions and 3 deletions
|
@ -658,12 +658,12 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
|
||||||
if (dstAlphaMode == DSTALPHA_ALPHA_PASS)
|
if (dstAlphaMode == DSTALPHA_ALPHA_PASS)
|
||||||
{
|
{
|
||||||
out.SetConstantsUsed(C_ALPHA, C_ALPHA);
|
out.SetConstantsUsed(C_ALPHA, C_ALPHA);
|
||||||
out.Write("\tgl_FragColor = float4(prev.rgb, " I_ALPHA"[0].a);\n");
|
out.Write("\tocol0 = float4(prev.rgb, " I_ALPHA"[0].a);\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
WriteFog<T>(out, uid_data);
|
WriteFog<T>(out, uid_data);
|
||||||
out.Write("\tgl_FragColor = prev;\n");
|
out.Write("\tocol0 = prev;\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use dual-source color blending to perform dst alpha in a single pass
|
// Use dual-source color blending to perform dst alpha in a single pass
|
||||||
|
@ -674,7 +674,7 @@ static inline void GeneratePixelShader(T& out, DSTALPHA_MODE dstAlphaMode, API_T
|
||||||
// Colors will be blended against the alpha from ocol1 and
|
// Colors will be blended against the alpha from ocol1 and
|
||||||
// the alpha from ocol0 will be written to the framebuffer.
|
// the alpha from ocol0 will be written to the framebuffer.
|
||||||
out.Write("\tocol1 = prev;\n");
|
out.Write("\tocol1 = prev;\n");
|
||||||
out.Write("\tgl_FragColor.a = " I_ALPHA"[0].a;\n");
|
out.Write("\tocol0.a = " I_ALPHA"[0].a;\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
out.Write("}\n");
|
out.Write("}\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue