blob: 499476925228646c5b111547eaa60945501ad4c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
//precision lowp float;
//precision lowp int;
uniform mat4 pmvMatrix[4]; // P, Mv, Mvi and Mvit
uniform vec4 sunColor;
uniform sampler2D mesh_ActiveTexture;
attribute vec4 mesh_vertices;
attribute vec4 mesh_colors;
attribute vec2 mesh_texCoord;
varying out vec4 position;
vec4 color;
varying out vec2 texCoord;
void main(void)
{
// Transforming The Vertex Position To ModelView-Space
position = pmvMatrix[1] * mesh_vertices; // vertex eye position
texCoord = mesh_texCoord;
gl_Position = pmvMatrix[0] * position;
color = mesh_colors * sunColor;
}
|