0001: //
0002: // This program creates the black spots.
0003: //
0004: 
0005: // ----------------------------------------------------------------------------
0006: // Input datas
0007: // ----------------------------------------------------------------------------
0008: struct appdata  {
0009:     float4 position  : POSITION;
0010:     float4 texcoord0 : TEXCOORD0;
0011: };
0012: // ----------------------------------------------------------------------------
0013: // Vertex shader program
0014: // ----------------------------------------------------------------------------
0015: vf20 main(appdata I
0016:         , uniform float4x4 worldviewproj_matrix
0017: ) {
0018:     vf20 O;
0019:     
0020:     float4 ofset0 = {-1.0f/512.0f, -1.0f/512.0f, 0.0f, 0.0f};
0021:     float4 ofset1 = {+1.0f/512.0f, -1.0f/512.0f, 0.0f, 0.0f};
0022:     float4 ofset2 = {-1.0f/512.0f, +1.0f/512.0f, 0.0f, 0.0f};
0023:     float4 ofset3 = {+1.0f/512.0f, +1.0f/512.0f, 0.0f, 0.0f};
0024:     
0025:     // copy given projection coordinate
0026:     O.HPOS = I.position;
0027: 
0028:     O.TEX0   = I.texcoord0 + ofset0;
0029:     O.TEX1   = I.texcoord0 + ofset1;
0030:     O.TEX2   = I.texcoord0 + ofset2;
0031:     O.TEX3   = I.texcoord0 + ofset3;
0032: 
0033:     return O;
0034: } 
0035: 
0036: 
0037: