aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/shapes/shaders/lineargradient.frag
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/shapes/shaders/lineargradient.frag')
-rw-r--r--src/imports/shapes/shaders/lineargradient.frag9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/imports/shapes/shaders/lineargradient.frag b/src/imports/shapes/shaders/lineargradient.frag
new file mode 100644
index 0000000000..7f4a739109
--- /dev/null
+++ b/src/imports/shapes/shaders/lineargradient.frag
@@ -0,0 +1,9 @@
+uniform sampler2D gradTabTexture;
+uniform highp float opacity;
+
+varying highp float gradTabIndex;
+
+void main()
+{
+ gl_FragColor = texture2D(gradTabTexture, vec2(gradTabIndex, 0.5)) * opacity;
+}