summaryrefslogtreecommitdiff
path: root/sample.fs
diff options
context:
space:
mode:
Diffstat (limited to 'sample.fs')
-rw-r--r--sample.fs20
1 files changed, 20 insertions, 0 deletions
diff --git a/sample.fs b/sample.fs
new file mode 100644
index 0000000..e3e0701
--- /dev/null
+++ b/sample.fs
@@ -0,0 +1,20 @@
+#version 120
+
+uniform float alpha;
+uniform float time;
+uniform float T;
+uniform vec3 color;
+uniform float seed;
+uniform float rand;
+
+void main()
+{
+ float len = min(length(gl_TexCoord[0].st), 1.f);
+ vec3 c = color;
+ float a = alpha;
+
+ len *= T;
+ a *= (1.f - (len * len * len * len * len * len * len));
+
+ gl_FragColor = vec4(a * c, a * alpha);
+}
© All Rights Reserved