Add green + magenta checker pattern

This commit is contained in:
Joshua Ashton 2023-05-17 19:58:30 +00:00
parent 1b26727244
commit 85480124d9
1 changed files with 8 additions and 0 deletions

View File

@ -401,6 +401,14 @@ void main()
outColor = vec4(nitsToPq(color), 1.0);
}
else if (test == nextTest++)
{
vec3 color = vec3(targetNits, 0.0f, targetNits);
if (((int(gl_FragCoord.x) & 1) == 0) == ((int(gl_FragCoord.y) & 1) == 0))
color = vec3(0.0f, targetNits, 0.0f);
outColor = vec4(nitsToPq(color), 1.0);
}
else if (test == nextTest++)
{
const vec3 barycentrics = vec3(1.0 - coords.x - coords.y, coords.x, coords.y) * targetNits;