- Home /
Answer by toddisarockstar · May 07, 2017 at 04:58 AM
this is about all i can think of:
Material m;
float flow;
float speed;
void Start () {
speed = .5f;
m = transform.renderer.material;
}
void Update () {
flow += Time.deltaTime*speed;
if (flow > 1) {
flow = 0;
}
m.mainTextureOffset = new Vector2(flow,flow);
}
}
Your answer
Follow this Question
Related Questions
How do I go about texturing a flat-shaded generated mesh? 1 Answer
How do I blend multiple textures on a mesh? 1 Answer
Create alphamap from mesh 0 Answers
Do you know a shader to use in a mesh terrain ? 0 Answers
my terrain details are rendering black when not having a back geometry in VR 2 Answers