diff options
author | Valerio Virgillito | 2012-05-22 14:54:51 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-22 14:54:51 -0700 |
commit | 3493df6f1b1eaa20bb4f391e19c19bb7f3c872a0 (patch) | |
tree | d0ca79f7a7be334d2a0580553bd9de3ba0bbe30b /assets/shaders/radialGradient.vert.glsl | |
parent | b3e85f609f704d668c8022c53418f8056bc71260 (diff) | |
parent | 862ee363584dfba4bdd9abacbc3a3244c7ec66b5 (diff) | |
download | ninja-3493df6f1b1eaa20bb4f391e19c19bb7f3c872a0.tar.gz |
Merge branch 'refs/heads/master' into dom-architecture
Conflicts:
js/io/system/ninjalibrary.json
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'assets/shaders/radialGradient.vert.glsl')
-rw-r--r-- | assets/shaders/radialGradient.vert.glsl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/assets/shaders/radialGradient.vert.glsl b/assets/shaders/radialGradient.vert.glsl index c3e1b50a..7994ac12 100644 --- a/assets/shaders/radialGradient.vert.glsl +++ b/assets/shaders/radialGradient.vert.glsl | |||
@@ -18,11 +18,13 @@ attribute vec2 texcoord; | |||
18 | // matrix uniforms | 18 | // matrix uniforms |
19 | uniform mat4 u_mvMatrix; | 19 | uniform mat4 u_mvMatrix; |
20 | uniform mat4 u_projMatrix; | 20 | uniform mat4 u_projMatrix; |
21 | uniform mat3 u_texTransform; | ||
21 | 22 | ||
22 | varying vec2 v_uv; | 23 | varying vec2 v_uv; |
23 | 24 | ||
24 | void main(void) | 25 | void main(void) |
25 | { | 26 | { |
26 | gl_Position = u_projMatrix * u_mvMatrix * vec4(vert,1.0) ; | 27 | gl_Position = u_projMatrix * u_mvMatrix * vec4(vert,1.0) ; |
27 | v_uv = texcoord; | 28 | vec3 tmp = u_texTransform * vec3( texcoord, 1.0); |
29 | v_uv = tmp.xy; | ||
28 | } \ No newline at end of file | 30 | } \ No newline at end of file |