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 2
// -----------
@@ -8,6 +8,13 @@
in vec2 vUV;
out vec4 fragColor;
#include inc_yuv.glsl
uniform sampler2D iTex0;
uniform sampler2D iTex2;
uniform int iInputFormat2;
uniform vec2 iInputResolution2;
void main() {
if (iInputFormat2 == YUYV_FOURCC) {
fragColor = yuyvTex(iTex2, vUV, int(iInputResolution2.x));