blob: 1292acebcadb3044bacd6c4e266f9983302d8f97 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#extension GL_OES_EGL_image_external : require
precision highp float;
precision highp int;
struct buf
{
mat4 matrix;
mat4 colorMatrix;
float opacity;
float width;
float masteringWhite;
float maxLum;
};
uniform buf ubuf;
uniform samplerExternalOES plane1Texture;
varying vec2 texCoord;
void main()
{
gl_FragColor = texture2D(plane1Texture, texCoord).rgba * ubuf.opacity;
#ifdef QMM_OUTPUTSURFACE_LINEAR
fragColor = pow(fragColor, 2.2);
#endif
}
|