diff options
author | hwc487 | 2012-07-09 16:08:02 -0700 |
---|---|---|
committer | hwc487 | 2012-07-09 16:08:02 -0700 |
commit | 5085d0f67df89a21715308956004164597a6ba79 (patch) | |
tree | 2c896163143a66331205a39b0a3b1b45d51bf12a /assets/shaders/linearGradient.vert.glsl | |
parent | 51f1691f792dbda9b740ded8aa0457c9406db156 (diff) | |
parent | 84b3327bd92faafab7954b5eb64c7abe24a3fe13 (diff) | |
download | ninja-5085d0f67df89a21715308956004164597a6ba79.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into GridFixes
Conflicts:
js/helper-classes/3D/StageLine.js
Diffstat (limited to 'assets/shaders/linearGradient.vert.glsl')
-rwxr-xr-x | assets/shaders/linearGradient.vert.glsl | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/assets/shaders/linearGradient.vert.glsl b/assets/shaders/linearGradient.vert.glsl index 165c2646..12b36c0f 100755 --- a/assets/shaders/linearGradient.vert.glsl +++ b/assets/shaders/linearGradient.vert.glsl | |||
@@ -51,25 +51,25 @@ uniform mat4 u_normalMatrix; | |||
51 | uniform mat4 u_projMatrix; | 51 | uniform mat4 u_projMatrix; |
52 | uniform mat4 u_worldMatrix; | 52 | uniform mat4 u_worldMatrix; |
53 | 53 | ||
54 | uniform vec4 u_color1; | 54 | uniform vec4 u_color1; |
55 | uniform vec4 u_color2; | 55 | uniform vec4 u_color2; |
56 | uniform vec4 u_color3; | 56 | uniform vec4 u_color3; |
57 | uniform vec4 u_color4; | 57 | uniform vec4 u_color4; |
58 | uniform float u_colorStop1; | 58 | uniform float u_colorStop1; |
59 | uniform float u_colorStop2; | 59 | uniform float u_colorStop2; |
60 | uniform float u_colorStop3; | 60 | uniform float u_colorStop3; |
61 | uniform float u_colorStop4; | 61 | uniform float u_colorStop4; |
62 | uniform vec2 u_cos_sin_angle; | 62 | uniform vec2 u_cos_sin_angle; |
63 | //uniform int u_colorCount; // currently using 4 | 63 | //uniform int u_colorCount; // currently using 4 |
64 | uniform mat3 u_texTransform; | 64 | uniform mat3 u_texTransform; |
65 | 65 | ||
66 | varying vec2 v_uv; | 66 | varying vec2 v_uv; |
67 | 67 | ||
68 | 68 | ||
69 | void main(void) | 69 | void main(void) |
70 | { | 70 | { |
71 | gl_Position = u_projMatrix * u_mvMatrix * vec4(vert,1.0) ; | 71 | gl_Position = u_projMatrix * u_mvMatrix * vec4(vert,1.0) ; |
72 | //v_uv = texcoord; | 72 | //v_uv = texcoord; |
73 | vec3 tmp = u_texTransform * vec3( texcoord, 1.0); | 73 | vec3 tmp = u_texTransform * vec3( texcoord, 1.0); |
74 | v_uv = tmp.xy; | 74 | v_uv = tmp.xy; |
75 | } | 75 | } |