I have a few objects that use UV offset animations, by using this code:
For example, there is a river flowing downstream. It uses a 256x256 texture, which displays really really bad on the iPhone, like it was 16x16. Even worse, sometimes it displays right, and sometimes I get this problem (without any recompile, just entering the game level again).
The shader on the object is a vertex colored shader:
Please let me know if there is anything I could do about this, to make it display right all the time.
Thanks a lot!
asked Jan 12 '10 at 09:18 PM
UV animation fails when the coordinates get too far from the origin. Clamp them instead:
answered Jan 15 '10 at 11:25 AM
It could be that the renderer chooses a too low mipmap version, does the problem go away when you turn generating mipmaps for texture off? If not, could you provide screenshots so we can see what you mean?
answered Jan 12 '10 at 11:35 PM