Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 330
- uniform sampler2D texY;
- uniform sampler2D texU;
- uniform sampler2D texV;
- in vec2 ftexcoord;
- layout(location = 0) out vec4 rgbColour;
- void main()
- {
- float y;
- float cb;
- float cr;
- vec2 txc = gl_FragCoord.xy;
- ivec2 texSize = textureSize(texY, 0);
- ivec2 texSizeB = textureSize(texY, 0);
- vec2 texOffset = 1 / vec2(texSize.xy);
- y = texture(texY, ftexcoord).r;
- cb = texture(texU, ftexcoord).r;
- cr = texture(texV, ftexcoord).r;
- rgbColour.r = y;
- rgbColour.g = cb;
- rgbColour.b = cr;
- rgbColour.a = 1.0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement