public Controller<float> CreateTextureVScroller( TextureUnitState layer, float speed )
{
IControllerValue<float> val = null;
IControllerFunction<float> func = null;
Controller<float> controller = null;
// if both u and v speeds are the same, we can use a single controller for it
if ( speed != 0 )
{
// create the value and function
val = new TexCoordModifierControllerValue( layer, false, true );
func = new MultipyControllerFunction( -speed, true );
// create the controller (uses FrameTime for source by default)
controller = CreateController( val, func );
}
return controller;
}