I’m writing an editor script which (among other things) analyzes a texture. I loop through the array with a nested loop examining the pixel data, and it’s fine on the x axis, but it’s flipped on the y axis. That is to say where the docs say:
In order to be accurate with what I’m getting, they would really have to say:
For reference, the image I’m using is 640x480, mipmaps are disabled, texture compression is disabled, power-of-two resizing is disabled, and read/write is (of course) enabled. However, I’ve tried changing all of those settings (except for the read/write checkbox, obviously) and none of them seem to affect anything.
Any idea what’s going wrong here?