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