Ember

stuff

Feb 11th, 2012
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. C = surface_getpixel(sNormal,mouse_x,mouse_y);
  2. R = color_get_red(C);
  3. G = color_get_green(C);
  4. B = color_get_blue(C);
  5. V[0] = (((R+1)/256)-0.5)*2;
  6. V[1] = (((G+1)/256)-0.5)*2;
  7. V[2] = (B+1)/256;
Advertisement
Add Comment
Please, Sign In to add comment