Esempio n. 1
0
 protected virtual void UpdateFog(IEffectFog effectFog)
 {
     // Fog
     if (_enableFog)
     {
         effectFog.FogEnabled = _enableFog;
         effectFog.FogColor   = _fogColor;
         effectFog.FogStart   = _fogStart;
         effectFog.FogEnd     = _fogEnd;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Applies fog to the target effect from the drawing context.
 /// </summary>
 public static void ApplyFog(DrawingContext3D context, IEffectFog effect)
 {
     effect.FogColor = context.FogColor;
     effect.FogStart = context.FogStart;
     effect.FogEnd   = context.FogEnd;
 }
Esempio n. 3
0
 protected virtual void UpdateFog(IEffectFog effectFog)
 {
     // Fog
     if (_enableFog)
     {
         effectFog.FogEnabled = _enableFog;
         effectFog.FogColor = _fogColor;
         effectFog.FogStart = _fogStart;
         effectFog.FogEnd = _fogEnd;
     }
 }
Esempio n. 4
0
 private void SetFog(IEffectFog effect)
 {
     effect.FogEnabled = true;
     effect.FogColor = Vector3.Zero;
     effect.FogStart = 5;
     effect.FogEnd = 8;
 }