diff options
author | Pushkar Joshi | 2012-02-09 10:55:58 -0800 |
---|---|---|
committer | Pushkar Joshi | 2012-02-09 10:55:58 -0800 |
commit | 5f42bd1f7723483d374cdd3fe51ef8298c86a1a2 (patch) | |
tree | 2404735a87ae1a755a1a301d1560db1c503d0a12 /assets/shaders/plasma.frag.glsl | |
parent | abeb9f1e23679200bb2f4a3ccbcebfb37645975c (diff) | |
parent | fba39dbb3bd64eddf6162fbf57232089e446fb06 (diff) | |
download | ninja-5f42bd1f7723483d374cdd3fe51ef8298c86a1a2.tar.gz |
Merge branch 'pentool' into brushtool
Diffstat (limited to 'assets/shaders/plasma.frag.glsl')
-rw-r--r-- | assets/shaders/plasma.frag.glsl | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/assets/shaders/plasma.frag.glsl b/assets/shaders/plasma.frag.glsl deleted file mode 100644 index 2ab8f49c..00000000 --- a/assets/shaders/plasma.frag.glsl +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | // | ||
2 | // Fragment shader for procedural bricks | ||
3 | // | ||
4 | // Authors: Dave Baldwin, Steve Koren, Randi Rost | ||
5 | // based on a shader by Darwyn Peachey | ||
6 | // | ||
7 | // Copyright (c) 2002-2006 3Dlabs Inc. Ltd. | ||
8 | // | ||
9 | // See 3Dlabs-License.txt for license information | ||
10 | // | ||
11 | |||
12 | #ifdef GL_ES | ||
13 | precision highp float; | ||
14 | #endif | ||
15 | |||
16 | |||
17 | varying vec2 v_uv; | ||
18 | uniform float u_time; | ||
19 | uniform vec4 color; | ||
20 | |||
21 | void main(void) | ||
22 | { | ||
23 | float x = v_uv.x ; | ||
24 | float y = v_uv.y ; | ||
25 | float time = color.x; | ||
26 | float wave = (cos(time + y / 0.2 + cos(x / 0.3 + cos((y / 0.1))))); | ||
27 | float wave1 = (sin(abs(wave + y/0.6))); | ||
28 | float wave2 = (sin(abs(wave1 + y/0.8))); | ||
29 | float tmp = u_time * 0.1; | ||
30 | gl_FragColor = vec4( abs(vec3(wave2,wave1,wave)),1.0); | ||
31 | //gl_FragColor = color; | ||
32 | } | ||