Add bayer mask selection

This commit is contained in:
2024-01-08 15:41:08 +01:00
parent 8fc2078a3a
commit 67355a82b7
5 changed files with 51 additions and 2 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
#version 330
uniform sampler2D qt_Texture0;
uniform ivec2 firstRed;
in vec2 qt_TexCoord0;
in vec2 center;
layout(location = 0) out vec4 color;
@@ -11,7 +12,7 @@ void main(void)
{
ivec2 texSize = textureSize(qt_Texture0, 0);
ivec2 icenter = ivec2(center);
ivec2 alternate = icenter % 2;
ivec2 alternate = (icenter + firstRed) % 2;
// cross, checker, theta, phi
const vec4 kA = vec4(-1.0, -1.5, 0.5, -1.0) / 8.0;