Tag Info

Hot answers tagged


You can control texture UV with external code. Define uniform float4 _Diffuse_ST; in your shader and then in your script call it every Update(): public float rollSpeed = 0.1f; void Update() { offset += Time.deltaTime * rollSpeed; renderer.material.SetTextureOffset("_Diffuse", new Vector2(offset, 0)); } Then your shader will look like this (it ...

Only top voted, non community-wiki answers of a minimum length are eligible