protected override void OnStart(WeatherSystem weatherSystem) { windDir.x = weatherSystem.windDir.x; windDir.y = weatherSystem.windDir.y; windDir.z = weatherSystem.windDir.z; windDir.w = 0; weatherSystem.SetGlobalVector("_WindDir", windDir); }
protected override void OnClear(WeatherSystem weatherSystem) { windDir.w = 0; weatherSystem.SetGlobalVector("_WindDir", windDir); }
protected override void OnStoping(WeatherSystem weatherSystem, float factor) { windDir.w = (1 - factor) * weatherSystem.windPower; weatherSystem.SetGlobalVector("_WindDir", windDir); }