diff options
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 | } |