mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-16 14:22:28 +00:00
26d04b5f9c
We can't always assume they are NV12. Even if they _are_ NV12, they may have DRM format modifiers that are incompatible with simply assuming linear Y and UV buffers (such as tiling).
12 lines
237 B
GLSL
12 lines
237 B
GLSL
#version 300 es
|
|
#extension GL_OES_EGL_image_external : require
|
|
precision mediump float;
|
|
out vec4 FragColor;
|
|
|
|
in vec2 vTextCoord;
|
|
|
|
uniform samplerExternalOES uTexture;
|
|
|
|
void main() {
|
|
FragColor = texture2D(uTexture, vTextCoord);
|
|
}
|