My work thus far. Contains shaders for motion compensation with 1 reference picture...
[xbmc:xbmc-antiquated.git] / sources / dvdplayer / ffmpeg / gpu / shaders / base.vert
1 //Basic vertex shader
2
3 #define TEXWIDTH 512.0
4 #define TEXHEIGHT 2048.0
5 void main()
6 {    
7      vec4 scale = vec4(TEXWIDTH, TEXHEIGHT, 1, 0);
8      gl_TexCoord[0] = gl_Vertex/scale;
9      gl_Position = gl_ProjectionMatrix * gl_ModelViewMatrix * gl_Vertex;
10 }