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 1
// -----------
// IN: 1+3 (RAW IN A)
// OUT: 5 (IN A)
// IN: 1 (RAW IN A)
// OUT: 3 (IN A)
in vec2 vUV;
out vec4 fragColor;
@@ -14,16 +14,11 @@ uniform sampler2D iTex0;
uniform sampler2D iTex1;
uniform sampler2D iTex3;
uniform int iInputFormat1;
uniform int iInputSwap1;
uniform vec2 iInputResolution1;
void main() {
if (iInputFormat1 == YUYV_FOURCC) {
if (iInputSwap1 > 0) {
fragColor = yuyvTex(iTex3, vUV, int(iInputResolution1.x));
} else {
fragColor = yuyvTex(iTex1, vUV, int(iInputResolution1.x));
}
fragColor = yuyvTex(iTex1, vUV, int(iInputResolution1.x));
} else {
fragColor = texture(iTex0, vUV);
}