- Home /
Texture panning causing texture smear?
Hi! I implemented the following code after a quick Google search and it was working like a charm:
float offset = Time.time * scrollSpeed;
renderer.material.mainTextureOffset = new Vector2(offset, 0);
Then at some point it seems to have broken - now it pans, but then doesn't loop the panning as before. Instead it appears to 'smear' across the plane I have the effect on. What else could be happening to cause the smear? The last thing I remember doing before seeing the smear is setting up my build options to build to Android.
Answer by robertbu · Mar 01, 2014 at 09:26 PM
Select your texture in the project. Then in the inspector change Wrap Mode to 'Repeat'.
Your answer
Follow this Question
Related Questions
Is it possible to create a shader that emits light into the world? 0 Answers
Cutout Material is not showing texture transparency? 0 Answers
Noob Question - Custom trees and aliasing 1 Answer
How to make a color graph in a SM3 Shader? 2 Answers
Texture stretching on one axis. Skybox Shader help. 1 Answer