summaryrefslogtreecommitdiff
path: root/src/renderergl2/glsl/pshadow_vp.glsl
blob: 0e0e3b3d3db2a321a1d0a4d839f54289269c43d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
}