blob: 1261782f8c489772f5e120f5880f08475caf6894 [file] [log] [blame]
#version 150 core
uniform sampler2D plane1Texture;
uniform sampler2D plane2Texture;
uniform mat4 colorMatrix;
uniform float opacity;
in vec2 plane1TexCoord;
in vec2 plane2TexCoord;
out vec4 fragColor;
void main()
{
float Y = texture(plane1Texture, plane1TexCoord).r;
vec2 UV = texture(plane2Texture, plane2TexCoord).ra;
vec4 color = vec4(Y, UV.x, UV.y, 1.);
fragColor = colorMatrix * color * opacity;
}