When I use the following script from the Unify wiki site, I get very blurry textures:
http://wiki.unity3d.com/index.php/Animating_Tiled_texture_-_Extended
After digging into and learning the script I then made a very simplified script of just the following commands:
renderer.material.SetTextureOffset ("_MainTex", offset);
renderer.material.SetTextureScale ("_MainTex", size);
Where I made the size (0.125,1) (I have 8 sprites in my texture so 1/8 =0.125)
and I made the offset (0,0) so I’d display the first frame of the texture
When I hit PLAY the rendered texture is the first image of my 8 images, which is great but it’s still very blurry, any ideas? If I remove the script and cut and paste one of the 8 frames from my texture onto the plane I’m using it looks sharp.
I’ve also made sure the plane I’m placing my texture on is the exact same ratio as one frame from my original texture.
Original size of one frame of the texture = 100 x 80, my plane size = .200 x .160
Any thoughts would be appreciated…
Thanks,
Vanz