public virtual void SetParameters(GoblinXNA.Graphics.Environment environment) { basicEffect.FogEnabled = environment.FogEnabled; if (environment.FogEnabled) { basicEffect.FogStart = environment.FogStartDistance; basicEffect.FogEnd = environment.FogEndDistance; basicEffect.FogColor = Vector3Helper.GetVector3(environment.FogColor); } }
/// <summary> /// This shader does not support environmental effect. /// </summary> /// <param name="environment"></param> public virtual void SetParameters(GoblinXNA.Graphics.Environment environment) { }