GLProgramming.com

home :: about :: development guides :: irc :: forums :: search :: paste :: links :: contribute :: code dump

-> Click here to learn how to get live help <-


New Paste :: Recent Pastes:: No Line Numbers


fix0r2 by statler
1
 
                    // zeile 1
                    if ((x-1>0) && ((y/3)-1>0))       { total+=texmap1[adress(x-1,y-3)+l]; summanden+=1.0f; };
                    if ((y/3)-1>0)                    { total+=texmap1[adress(x,y-3)  +l]; summanden+=1.0f; };
                    if ((x+1<texsize) && ((y/3)-1>0)) { total+=texmap1[adress(x+1,y-3)+l]; summanden+=1.0f; };
                    
                    // zeile 2
                    if (x-1>1)       { total+=texmap1[adress(x-1,y)+l]; summanden+=1.0f; };
                                       total+=texmap1[adress(x,y)  +l]; summanden+=1.0f; // source pixel, die anderen: nachbarn davon
                    if (x+1<texsize) { total+=texmap1[adress(x+1,y)+l]; summanden+=1.0f; };
                    
                    // zeile 3
                    if ((x-1>0) && ((y/3)+1<texsize))         { total+=texmap1[adress(x-1,y+3)+l]; summanden+=1.0f; };
                    if ((y/3)+1<texsize)                      { total+=texmap1[adress(x,y+3)  +l]; summanden+=1.0f; };
                    if ((x+1<texsize) && ((y/3)+1<texsize-2)) { total+=texmap1[adress(x+1,y+3)+l]; summanden+=1.0f; };