GS/HW: Fix flat shaded color in AA1 shader.

This commit is contained in:
TJnotJT
2026-05-12 14:46:49 +02:00
committed by lightningterror
parent 38ee1e1e22
commit 4ef84fa51c
5 changed files with 22 additions and 1 deletions
+5
View File
@@ -1729,6 +1729,11 @@ VS_OUTPUT vs_main_expand(uint vid : SV_VertexID)
}
vtx.interior = 0;
#if !VS_IIP
// Get the provoking vertex color (first vertex in DX)
vtx.c = i0 == 0 ? vtx.c : (i1 == 0 ? other.c : opposite.c);
#endif
}
return vtx;
@@ -308,6 +308,11 @@ void main()
}
VSout.interior = 0;
#if !VS_IIP
// Get the provoking vertex color (last vertex in GL)
vtx.c = i0 == 2 ? vtx.c : (i1 == 2 ? other.c : opposite.c);
#endif
}
#endif
+5
View File
@@ -316,6 +316,11 @@ void main()
}
vsOut.interior = 0;
#if !VS_IIP
// Get the provoking vertex color (last vertex in VK)
vtx.c = i0 == 2 ? vtx.c : (i1 == 2 ? other.c : opposite.c);
#endif
}
#endif
+6
View File
@@ -396,6 +396,12 @@ vertex MainVSOut vs_main_expand(
}
out.interior = 0;
if (NOT_IIP)
{
// Get the provoking vertex color (first vertex in Metal)
out.fc = i0 == 0 ? out.fc : (i1 == 0 ? other.fc : opposite.fc);
}
}
return out;
+1 -1
View File
@@ -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 = 92; // Last changed in PR 14399
static constexpr u32 SHADER_CACHE_VERSION = 93; // Last changed in PR 14435