aboutsummaryrefslogtreecommitdiff
path: root/assets/shaders/radialGradient.vert.glsl
diff options
context:
space:
mode:
authorEric Guzman2012-02-13 10:30:26 -0800
committerEric Guzman2012-02-13 10:30:26 -0800
commit672e6f61647b1b8a5f6f5831284fa44bcb7be883 (patch)
tree0c15656f1f82f194bfcab68634a88f68fd3d42cb /assets/shaders/radialGradient.vert.glsl
parent586c3f7bbea04e62638e5ed8cdce9933e88c0b67 (diff)
parente142611e22718b1f1d1696902ad9161ec5f33f98 (diff)
downloadninja-672e6f61647b1b8a5f6f5831284fa44bcb7be883.tar.gz
Merge branch 'refs/heads/master' into PresetsPanel
Diffstat (limited to 'assets/shaders/radialGradient.vert.glsl')
-rw-r--r--assets/shaders/radialGradient.vert.glsl28
1 files changed, 28 insertions, 0 deletions
diff --git a/assets/shaders/radialGradient.vert.glsl b/assets/shaders/radialGradient.vert.glsl
new file mode 100644
index 00000000..c3e1b50a
--- /dev/null
+++ b/assets/shaders/radialGradient.vert.glsl
@@ -0,0 +1,28 @@
1/* <copyright>
2This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */
6
7
8#ifdef GL_ES
9precision highp float;
10#endif
11
12
13// attributes
14attribute vec3 vert;
15attribute vec3 normal;
16attribute vec2 texcoord;
17
18// matrix uniforms
19uniform mat4 u_mvMatrix;
20uniform mat4 u_projMatrix;
21
22varying vec2 v_uv;
23
24void main(void)
25{
26 gl_Position = u_projMatrix * u_mvMatrix * vec4(vert,1.0) ;
27 v_uv = texcoord;
28} \ No newline at end of file