I’m trying to make a fountain and I could not get mesh particles to work so I decided to try a scrolling texture. I found a texture offset script but its moving the texture in both “Y” and “X”. I only want the scroll to offset in on axis so it appears that the water is falling. Any ideas? here is the script I’m using.
// Scroll main texture based on time
//@script ExecuteInEditMode
var scrollSpeed = .1;
function Update ()
{
if(renderer.material.shader.isSupported)
Camera.main.depthTextureMode |= DepthTextureMode.Depth;
var offset = Time.time * scrollSpeed;
renderer.material.SetTextureOffset (“_BumpMap”, Vector2(offset/10.0, offset));
renderer.material.SetTextureOffset (“_MainTex”, Vector2(offset/10.0, offset));
}