blob: 48ef3fa2c791583a6959410e0889f6e0c0e95452 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#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).ar;
vec4 color = vec4(Y, UV.x, UV.y, 1.);
fragColor = colorMatrix * color * opacity;
}
|