There are already X and Y that return the current coordinates in the 0..1 range. I'd love to be able to access the actual coordinates of a pixel. That is, for a pixel with X=1.0, Y=1.0 on a 64x128 bitmap, those coordinates will be PX=63, PY=127.
I know that
Code: Select all
int PX = round(X*(16<<BitmapName.Width));
int PY = round(Y*(16<<BitmapName.Height));
The use case is creating lookup textures for complex effects.
Thanks in advance!