aboutsummaryrefslogtreecommitdiff
path: root/assets/shaders/linearGradient.vert.glsl
diff options
context:
space:
mode:
authorhwc4872012-07-09 16:08:02 -0700
committerhwc4872012-07-09 16:08:02 -0700
commit5085d0f67df89a21715308956004164597a6ba79 (patch)
tree2c896163143a66331205a39b0a3b1b45d51bf12a /assets/shaders/linearGradient.vert.glsl
parent51f1691f792dbda9b740ded8aa0457c9406db156 (diff)
parent84b3327bd92faafab7954b5eb64c7abe24a3fe13 (diff)
downloadninja-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-xassets/shaders/linearGradient.vert.glsl30
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;
51uniform mat4 u_projMatrix; 51uniform mat4 u_projMatrix;
52uniform mat4 u_worldMatrix; 52uniform mat4 u_worldMatrix;
53 53
54uniform vec4 u_color1; 54uniform vec4 u_color1;
55uniform vec4 u_color2; 55uniform vec4 u_color2;
56uniform vec4 u_color3; 56uniform vec4 u_color3;
57uniform vec4 u_color4; 57uniform vec4 u_color4;
58uniform float u_colorStop1; 58uniform float u_colorStop1;
59uniform float u_colorStop2; 59uniform float u_colorStop2;
60uniform float u_colorStop3; 60uniform float u_colorStop3;
61uniform float u_colorStop4; 61uniform float u_colorStop4;
62uniform vec2 u_cos_sin_angle; 62uniform vec2 u_cos_sin_angle;
63//uniform int u_colorCount; // currently using 4 63//uniform int u_colorCount; // currently using 4
64uniform mat3 u_texTransform; 64uniform mat3 u_texTransform;
65 65
66varying vec2 v_uv; 66varying vec2 v_uv;
67 67
68 68
69void main(void) 69void 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}