x


Moving textures over a model

For a game, I want to move a texture on one of my models. In other words, I would want a water texture to move on the surface of the water itself, so it looks like the water is moving by itself. How would I script that?

more ▼

asked Sep 26 '10 at 02:29 AM

Mentalist4006 gravatar image

Mentalist4006
120 17 19 28

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

All's you would need to do is change the texture's offset.

 renderer.material.SetTextureOffset("_WaveTex", Vector2(Time.time, 0));
 //or something similar.
more ▼

answered Sep 26 '10 at 02:34 AM

Peter G gravatar image

Peter G
15.1k 16 44 137

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3935
x2279
x1426
x517
x104

asked: Sep 26 '10 at 02:29 AM

Seen: 3194 times

Last Updated: Sep 26 '10 at 02:29 AM