shared data and pass fps to main thread

This commit is contained in:
2025-09-26 17:10:54 +02:00
parent 30c0eaa84b
commit 80ea990cf7
14 changed files with 210 additions and 42 deletions
+3 -3
View File
@@ -6,12 +6,12 @@
in vec2 vUV;
out vec4 fragColor;
uniform vec3 iInputResolution1;
uniform int iInputFormat1;
void main() {
if (iInputResolution1.z == YUYV_FOURCC) {
if (iInputFormat1 == YUYV_FOURCC) {
fragColor = yuyvTex(tex1, vUV, int(iInputResolution1.x));
} else {
fragColor = vec4(0, 0, 0, 1);
fragColor = texture(tex0, vUV);
}
}