Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Assembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Sets the translation offset of the texture, ie scrolls the texture.
Namespace: Visual3D.Graphics3DAssembly: Visual3D.Engine (in Visual3D.Engine.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# | Visual Basic |
public void SetTextureScroll( float u, float v )
Public Sub SetTextureScroll ( _ u As Single, _ v As Single _ )
Parameters
- u
- Single
The amount the texture should be moved horizontally (u direction).
- v
- Single
The amount the texture should be moved vertically (v direction).
Remarks
This method sets the translation element of the texture transformation, and is easier to use than setTextureTransform if
you are combining translation, scaling and rotation in your texture transformation. Again if you want
to animate these values you need to use a Controller
Has no effect in the programmable pipeline.