You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
291 B
14 lines
291 B
13 years ago
|
uniform mat4 g_WorldViewProjectionMatrix;
|
||
|
|
||
|
attribute vec4 inPosition;
|
||
|
attribute vec4 inColor;
|
||
|
attribute vec4 inIndex;
|
||
|
|
||
|
varying vec4 color;
|
||
|
|
||
|
void main() {
|
||
|
vec2 pos = (g_WorldViewProjectionMatrix * inPosition).xy;
|
||
|
gl_Position = vec4(pos, 0.0, 1.0);
|
||
|
|
||
13 years ago
|
color = inColor;
|
||
13 years ago
|
}
|