mirror of https://github.com/PCSX2/pcsx2.git
GS/HW: Round alpha values for indexed sample of RTA
This commit is contained in:
parent
77a03498c1
commit
aa48256010
|
@ -339,7 +339,7 @@ uint4 sample_4_index(float4 uv, float uv_w)
|
|||
|
||||
if (PS_RTA_SRC_CORRECTION)
|
||||
{
|
||||
i = uint4(c * 128.55f); // Denormalize value
|
||||
i = uint4(round(c * 128.25f)); // Denormalize value
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -285,7 +285,7 @@ uvec4 sample_4_index(vec4 uv)
|
|||
c.w = sample_c(uv.zw).a;
|
||||
|
||||
#if PS_RTA_SRC_CORRECTION
|
||||
uvec4 i = uvec4(c * 128.55f); // Denormalize value
|
||||
uvec4 i = uvec4(round(c * 128.25f)); // Denormalize value
|
||||
#else
|
||||
uvec4 i = uvec4(c * 255.5f); // Denormalize value
|
||||
#endif
|
||||
|
|
|
@ -532,7 +532,7 @@ uvec4 sample_4_index(vec4 uv)
|
|||
// Denormalize value
|
||||
|
||||
#if PS_RTA_SRC_CORRECTION
|
||||
uvec4 i = uvec4(c * 128.55f);
|
||||
uvec4 i = uvec4(round(c * 128.25f));
|
||||
#else
|
||||
uvec4 i = uvec4(c * 255.5f);
|
||||
#endif
|
||||
|
|
|
@ -492,7 +492,7 @@ struct PSMain
|
|||
|
||||
if (PS_RTA_SRC_CORRECTION)
|
||||
{
|
||||
i = uint4(c * 128.55f); // Denormalize value
|
||||
i = uint4(round(c * 128.25f)); // Denormalize value
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -3,4 +3,4 @@
|
|||
|
||||
/// Version number for GS and other shaders. Increment whenever any of the contents of the
|
||||
/// shaders change, to invalidate the cache.
|
||||
static constexpr u32 SHADER_CACHE_VERSION = 47;
|
||||
static constexpr u32 SHADER_CACHE_VERSION = 48;
|
||||
|
|
Loading…
Reference in New Issue