diff options
author | Eric Guzman | 2012-03-17 00:05:14 -0700 |
---|---|---|
committer | Eric Guzman | 2012-03-17 00:05:14 -0700 |
commit | a3192d8bc0f8c0698265817c14dcd2284fd89d7d (patch) | |
tree | 497ac55f550ed52f9d73b464aafb2aa6cb5f5038 /assets/shaders | |
parent | a6a6f9bcc5ff92f5bb5e9275336dfaec2d8e8f4c (diff) | |
parent | 954f5a13e371febcb1c0fb8015c577ee51c23130 (diff) | |
download | ninja-a3192d8bc0f8c0698265817c14dcd2284fd89d7d.tar.gz |
Merge branch 'refs/heads/master' into AddAnimationsLibrary
Conflicts:
js/panels/presets/default-transition-presets.js
Diffstat (limited to 'assets/shaders')
-rw-r--r-- | assets/shaders/plasma.frag.glsl | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/assets/shaders/plasma.frag.glsl b/assets/shaders/plasma.frag.glsl index 2ab8f49c..248288a6 100644 --- a/assets/shaders/plasma.frag.glsl +++ b/assets/shaders/plasma.frag.glsl | |||
@@ -22,11 +22,9 @@ void main(void) | |||
22 | { | 22 | { |
23 | float x = v_uv.x ; | 23 | float x = v_uv.x ; |
24 | float y = v_uv.y ; | 24 | float y = v_uv.y ; |
25 | float time = color.x; | 25 | float time = u_time; |
26 | float wave = (cos(time + y / 0.2 + cos(x / 0.3 + cos((y / 0.1))))); | 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))); | 27 | float wave1 = (sin(abs(wave + y/0.6))); |
28 | float wave2 = (sin(abs(wave1 + y/0.8))); | 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); | 29 | gl_FragColor = vec4( abs(vec3(wave2,wave1,wave)),1.0); |
31 | //gl_FragColor = color; | ||
32 | } | 30 | } |