1attribute vec2 position;
2
3uniform mat4 LightMatrix;
4uniform mat4 ModelViewProjectionMatrix;
5
6varying vec4 ShadowCoord;
7varying vec4 Color;
8
9void main()
10{
11    Color = MaterialDiffuse;
12
13    vec4 pos4 = vec4(position, 0.0, 1.0);
14    ShadowCoord = LightMatrix * pos4;
15    gl_Position = ModelViewProjectionMatrix * pos4;
16}
17