mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-05-19 16:10:35 +00:00
Switch EGLRenderer to the shared functions for CSC matrix generation and chroma co-siting
This commit is contained in:
@@ -7,13 +7,14 @@ in vec2 vTextCoord;
|
||||
|
||||
uniform mat3 yuvmat;
|
||||
uniform vec3 offset;
|
||||
uniform vec2 chromaOffset;
|
||||
uniform samplerExternalOES plane1;
|
||||
uniform samplerExternalOES plane2;
|
||||
|
||||
void main() {
|
||||
vec3 YCbCr = vec3(
|
||||
texture2D(plane1, vTextCoord)[0],
|
||||
texture2D(plane2, vTextCoord).xy
|
||||
texture2D(plane2, vTextCoord + chromaOffset).xy
|
||||
);
|
||||
|
||||
YCbCr -= offset;
|
||||
|
||||
Reference in New Issue
Block a user