diff options
author | hwc487 | 2012-02-07 14:35:55 -0800 |
---|---|---|
committer | hwc487 | 2012-02-07 14:35:55 -0800 |
commit | 2d4da18a778471b02e188ad668752e331ee76127 (patch) | |
tree | d1aee0417e6e9ad0335c9e6232d49001a4e425ba /assets/shaders/Basic.vert.glsl | |
parent | 9d122c5f1632b1225a543049913c36b9a030110c (diff) | |
download | ninja-2d4da18a778471b02e188ad668752e331ee76127.tar.gz |
test code for deformation shader
Diffstat (limited to 'assets/shaders/Basic.vert.glsl')
-rw-r--r-- | assets/shaders/Basic.vert.glsl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/shaders/Basic.vert.glsl b/assets/shaders/Basic.vert.glsl index 028786d1..40b97ad7 100644 --- a/assets/shaders/Basic.vert.glsl +++ b/assets/shaders/Basic.vert.glsl | |||
@@ -12,7 +12,9 @@ precision highp float; | |||
12 | 12 | ||
13 | // attributes | 13 | // attributes |
14 | attribute vec3 a_pos; | 14 | attribute vec3 a_pos; |
15 | attribute vec2 texcoord; | ||
15 | 16 | ||
17 | varying vec4 v_color; | ||
16 | 18 | ||
17 | 19 | ||
18 | // matrix uniforms | 20 | // matrix uniforms |
@@ -22,5 +24,6 @@ uniform mat4 u_worldMatrix; | |||
22 | 24 | ||
23 | void main(void) | 25 | void main(void) |
24 | { | 26 | { |
27 | v_color = vec4(texcoord.x, texcoord.y, 0, 1); | ||
25 | gl_Position = u_projMatrix * u_mvMatrix * vec4(a_pos,1.0) ; | 28 | gl_Position = u_projMatrix * u_mvMatrix * vec4(a_pos,1.0) ; |
26 | } \ No newline at end of file | 29 | } \ No newline at end of file |