Sign in
third-party-mirror
/
orbit
/
refs/heads/master
/
.
/
qt-everywhere-src-5.15.1
/
qtdeclarative
/
src
/
quick
/
scenegraph
/
shaders
/
24bittextmask_core.frag
blob: 29d1f2301751621b84354b844691b304f7ca53c2 [
file
] [
log
] [
blame
]
#version 150 core
in
vec2 sampleCoord
;
out
vec4 fragColor
;
uniform sampler2D _qt_texture
;
uniform
float
color
;
// just the alpha, really...
void
main
()
{
vec4 glyph
=
texture
(
_qt_texture
,
sampleCoord
);
fragColor
=
vec4
(
glyph
.
rgb
*
color
,
glyph
.
a
);
}