lib-unity-demo-sewer-Assets--Scripts-UVScroller.js / js
// Scroll main texture based on time var scrollSpeed = 0.1; function Update () { var offset = Time.time * scrollSpeed; renderer.material.SetTextureOffset ("_BumpMap", Vector2(offset/-7.0, offset)); renderer.material.SetTextureOffset ("_MainTex", Vector2(offset/10.0, offset)); }
(C) Æliens 04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.