ioq3/code/renderergl2/glsl/pshadow_vp.glsl
2013-02-15 23:46:37 +00:00

17 lines
328 B
GLSL

attribute vec4 attr_Position;
attribute vec3 attr_Normal;
uniform mat4 u_ModelViewProjectionMatrix;
varying vec3 var_Position;
varying vec3 var_Normal;
void main()
{
vec4 position = attr_Position;
gl_Position = u_ModelViewProjectionMatrix * position;
var_Position = position.xyz;
var_Normal = attr_Normal;
}