Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 protected override void OnClear(WeatherSystem weatherSystem)
 {
     windDir.w = 0;
     weatherSystem.SetGlobalVector("_WindDir", windDir);
 }
Exemplo n.º 3
0
 protected override void OnStoping(WeatherSystem weatherSystem, float factor)
 {
     windDir.w = (1 - factor) * weatherSystem.windPower;
     weatherSystem.SetGlobalVector("_WindDir", windDir);
 }