docs: README update
This commit is contained in:
+3
-1
@@ -8,7 +8,7 @@
|
||||
in vec2 vUV;
|
||||
out vec4 fragColor;
|
||||
|
||||
#include inc_yuv.glsl
|
||||
#include inc_yuyv.glsl
|
||||
|
||||
uniform sampler2D iTex0;
|
||||
uniform sampler2D iTex2;
|
||||
@@ -18,6 +18,8 @@ uniform vec2 iInputResolution2;
|
||||
void main() {
|
||||
if (iInputFormat2 == YUYV_FOURCC) {
|
||||
fragColor = yuyvTex(iTex2, vUV, int(iInputResolution2.x));
|
||||
} else if (iInputResolution2.x > 0) {
|
||||
fragColor = texture(iTex2, vUV);
|
||||
} else {
|
||||
fragColor = texture(iTex0, vUV);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user