My work thus far. Contains shaders for motion compensation with 1 reference picture...
[xbmc:xbmc-antiquated.git] / sources / dvdplayer / ffmpeg / gpu / shaders / 3dpacked.frag
1 //Basic Fragment shader
2                                                                                 
3 uniform sampler3D dpb;
4 #define scaling 4.0/512.0
5                                                                                 
6 void main(void)                                                                 
7 {      
8    mat4 ident = mat4(1);                                 
9 //   gl_FragColor = texture3D(dpb, vec3(287.0/512.0, 86.0/2048.0, 8.0));
10      gl_FragColor = texture3D(dpb, vec3(gl_TexCoord[0].x/4.0, gl_TexCoord[0].y, 16.0));
11 //   gl_FragColor = dot(gl_FragColor, ident[floor(gl_TexCoord[0].x/scaling)]);
12 //      gl_FragColor = vec4(0.0, 1.0, 0.0, 0.0);              
13    //   gl_FragColor.r = texture3D(dpb, vec3(0.0, 0.0, 3.0)).r;
14 }