blob: 9c64a60d3df327fd704756e4e1c2f2984e35530b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#version 150 core
in vec2 sampleCoord;
out vec4 fragColor;
uniform sampler2D _qt_texture;
uniform vec4 color;
uniform float alphaMin;
uniform float alphaMax;
void main()
{
fragColor = color * smoothstep(alphaMin, alphaMax,
texture(_qt_texture, sampleCoord).r);
}
|