예제 #1
0
 public TextureTimeScrollModClip(string sourcePropertyName, FModMode fModMode, TimeScaleMode timeScaleMode)
 {
     this._sourcePropertyName = sourcePropertyName;
     this._speed         = 1f;
     this._timeScaleMode = timeScaleMode;
     this._textureTiling = 1f;
 }
예제 #2
0
 public TextureTimeScrollModClip(string sourcePropertyName, FModMode fModMode, TimeScaleMode timeScaleMode, float speed, TilingMode tilingMode, float textureTiling)
 {
     this._sourcePropertyName = sourcePropertyName;
     this._speed         = speed;
     this._timeScaleMode = timeScaleMode;
     this._textureTiling = Mathf.Clamp(textureTiling, 0f, float.PositiveInfinity);
     this._tilingMode    = tilingMode;
 }
예제 #3
0
 private float GetModValue(FModMode fModMode)
 {
     if (fModMode == FModMode.Sin)
     {
         return(360f);
     }
     if (fModMode != FModMode.Infinity)
     {
         return((this._textureTiling <= 0f) ? 0f : (1f / this._textureTiling));
     }
     return(float.PositiveInfinity);
 }