refactor: split frag0 into multiple files

This commit is contained in:
2025-11-08 22:35:10 +01:00
parent b4b79cea12
commit 248c947fad
31 changed files with 2041 additions and 1875 deletions
+8 -1
View File
@@ -1,4 +1,4 @@
#include frag0.glsl
#version 460
// VIDEO 1
// -----------
@@ -8,6 +8,13 @@
in vec2 vUV;
out vec4 fragColor;
#include inc_yuv.glsl
uniform sampler2D iTex0;
uniform sampler2D iTex1;
uniform int iInputFormat1;
uniform vec2 iInputResolution1;
void main() {
if (iInputFormat1 == YUYV_FOURCC) {
fragColor = yuyvTex(iTex1, vUV, int(iInputResolution1.x));