public TextureTimeScrollModClip(string sourcePropertyName, FModMode fModMode, TimeScaleMode timeScaleMode) { this._sourcePropertyName = sourcePropertyName; this._speed = 1f; this._timeScaleMode = timeScaleMode; this._textureTiling = 1f; }
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; }
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); }