mirror of https://github.com/PCSX2/pcsx2.git
GSdx-d3d: Drop an useless min in FS - port from GL.
Commit: a1957a685d
GPU will clamp color anyway. It reduces the number of instruction of 25%
(4->3).
This commit is contained in:
parent
1498f538dd
commit
188a1f1416
|
@ -18,7 +18,7 @@ struct PS_INPUT
|
|||
float4 ps_main0(PS_INPUT input) : SV_Target0
|
||||
{
|
||||
float4 c = Texture.Sample(Sampler, input.t);
|
||||
c.a = min(c.a * 2, 1);
|
||||
c.a *= 2.0f;
|
||||
return c;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue