protected virtual void UpdateFog(IEffectFog effectFog) { // Fog if (_enableFog) { effectFog.FogEnabled = _enableFog; effectFog.FogColor = _fogColor; effectFog.FogStart = _fogStart; effectFog.FogEnd = _fogEnd; } }
/// <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; }
private void SetFog(IEffectFog effect) { effect.FogEnabled = true; effect.FogColor = Vector3.Zero; effect.FogStart = 5; effect.FogEnd = 8; }