diff options
Diffstat (limited to 'assets/shaders/linearGradient.vert.glsl')
-rw-r--r-- | assets/shaders/linearGradient.vert.glsl | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/assets/shaders/linearGradient.vert.glsl b/assets/shaders/linearGradient.vert.glsl new file mode 100644 index 00000000..aac9cbee --- /dev/null +++ b/assets/shaders/linearGradient.vert.glsl | |||
@@ -0,0 +1,48 @@ | |||
1 | /* <copyright> | ||
2 | This file contains proprietary software owned by Motorola Mobility, Inc.<br/> | ||
3 | No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/> | ||
4 | (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. | ||
5 | </copyright> */ | ||
6 | |||
7 | |||
8 | #ifdef GL_ES | ||
9 | precision highp float; | ||
10 | #endif | ||
11 | |||
12 | |||
13 | // attributes | ||
14 | attribute vec3 vert; | ||
15 | attribute vec3 normal; | ||
16 | attribute vec2 texcoord; | ||
17 | |||
18 | //uniform mat4 u_shadowLightWorld; | ||
19 | //uniform mat4 u_shadowBiasMatrix; | ||
20 | //uniform mat4 u_vShadowLight; | ||
21 | //uniform vec3 u_lightPos; | ||
22 | |||
23 | // matrix uniforms | ||
24 | uniform mat4 u_mvMatrix; | ||
25 | uniform vec3 u_eye; | ||
26 | uniform mat4 u_normalMatrix; | ||
27 | uniform mat4 u_projMatrix; | ||
28 | uniform mat4 u_worldMatrix; | ||
29 | |||
30 | uniform vec4 u_color1; | ||
31 | uniform vec4 u_color2; | ||
32 | uniform vec4 u_color3; | ||
33 | uniform vec4 u_color4; | ||
34 | uniform float u_colorStop1; | ||
35 | uniform float u_colorStop2; | ||
36 | uniform float u_colorStop3; | ||
37 | uniform float u_colorStop4; | ||
38 | uniform vec2 u_cos_sin_angle; | ||
39 | //uniform int u_colorCount; // currently using 4 | ||
40 | |||
41 | varying vec2 v_uv; | ||
42 | |||
43 | |||
44 | void main(void) | ||
45 | { | ||
46 | gl_Position = u_projMatrix * u_mvMatrix * vec4(vert,1.0) ; | ||
47 | v_uv = texcoord; | ||
48 | } | ||