I don't need to move the texture - the texture remains the same... it's the pixels of the texture that change - dynamic weather. think of each pixel as part of a cloud... as the cloud floats across the texture (and changes shape) different pixels are colored white. I am trying to prevent the pixels drawn on the texture from moving down the sphere (think of two "for loops," X and Y, the total = 10 for both. the loops will work as
X1
Y1, Y2, Y3, Y4, Y5...
X2
Y1, Y2, Y3, Y4, Y5...
X3...
) This causes the clouds to offset and draw abnormally on the sphere... and because the pixels of the texture are colored based on temperature and pressure, just scrolling the texture doesn't work.
When pixels are drawn, they are drawn in this manner. I need to find a function that wraps the pixel back to one when it reaches the full size...
Function PixelWrap(CurrentX, CurrentY, XSize, YSize)
If CurrentX = XSize then CurrentX = 1
If CurrentY = YSize then CurrentY = CurrentY
endfunction
I couldn't get the above to work
Jack and Jill went up a hill to fetch a pale of water... but Jill got tired of his s#%& so she shot him.
