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