Advertisement
hejmus

Untitled

May 25th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1.     uchar4 rgba;
  2.     rgba = tex2D(rgbaTex, x, y-1);
  3.     sum.x -= rgba.x ; sum.y -= rgba.y; sum.z -= rgba.z;
  4.  
  5.     rgba = tex2D(rgbaTex, x-1, y);
  6.     sum.x -= rgba.x; sum.y -= rgba.y; sum.z -= rgba.z;
  7.     rgba = tex2D(rgbaTex, x, y);
  8.     sum.x += rgba.x * 4; sum.y += rgba.y * 4; sum.z += rgba.z * 4;
  9.     rgba = tex2D(rgbaTex, x+1, y);
  10.     sum.x -= rgba.x; sum.y -= rgba.y; sum.z -= rgba.z;
  11.    
  12.     rgba = tex2D(rgbaTex, x, y+1);
  13.     sum.x -= rgba.x; sum.y -= rgba.y; sum.z -= rgba.z;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement