aboutsummaryrefslogtreecommitdiff
path: root/assets/shaders/linearGradient.vert.glsl
diff options
context:
space:
mode:
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}