fix: update default project with internal buffer swap

This commit is contained in:
2026-05-15 16:36:57 +02:00
parent 365fee352e
commit 96f97d81df
10 changed files with 129 additions and 67 deletions
+3 -8
View File
@@ -2,8 +2,8 @@
// VIDEO 2
// -----------
// IN: 2+4 (RAW IN B)
// OUT: 6 (IN B)
// IN: 2 (RAW IN B)
// OUT: 4 (IN B)
in vec2 vUV;
out vec4 fragColor;
@@ -14,16 +14,11 @@ uniform sampler2D iTex0;
uniform sampler2D iTex2;
uniform sampler2D iTex4;
uniform int iInputFormat2;
uniform int iInputSwap2;
uniform vec2 iInputResolution2;
void main() {
if (iInputFormat2 == YUYV_FOURCC) {
if (iInputSwap2 > 0) {
fragColor = yuyvTex(iTex4, vUV, int(iInputResolution2.x));
} else {
fragColor = yuyvTex(iTex2, vUV, int(iInputResolution2.x));
}
fragColor = yuyvTex(iTex2, vUV, int(iInputResolution2.x));
} else {
fragColor = texture(iTex0, vUV);
}