aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/scenegraph/shaders/texture.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/scenegraph/shaders/texture.frag')
-rw-r--r--src/quick/scenegraph/shaders/texture.frag9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/quick/scenegraph/shaders/texture.frag b/src/quick/scenegraph/shaders/texture.frag
new file mode 100644
index 0000000000..2d97f2e66a
--- /dev/null
+++ b/src/quick/scenegraph/shaders/texture.frag
@@ -0,0 +1,9 @@
+varying highp vec2 qt_TexCoord;
+
+uniform sampler2D qt_Texture;
+uniform lowp float opacity;
+
+void main()
+{
+ gl_FragColor = texture2D(qt_Texture, qt_TexCoord) * opacity;
+} \ No newline at end of file