diff options
Diffstat (limited to 'src/quick/scenegraph/shaders/32bitcolortext_core.frag')
-rw-r--r-- | src/quick/scenegraph/shaders/32bitcolortext_core.frag | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/quick/scenegraph/shaders/32bitcolortext_core.frag b/src/quick/scenegraph/shaders/32bitcolortext_core.frag new file mode 100644 index 0000000000..010aca97b4 --- /dev/null +++ b/src/quick/scenegraph/shaders/32bitcolortext_core.frag @@ -0,0 +1,13 @@ +#version 150 core + +in vec2 sampleCoord; + +out vec4 fragColor; + +uniform sampler2D _qt_texture; +uniform float color; // just the alpha, really... + +void main() +{ + fragColor = texture(_qt_texture, sampleCoord) * color; +} |