コード例 #1
0
 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);
     }
 }
コード例 #2
0
 /// <summary>
 /// This shader does not support environmental effect.
 /// </summary>
 /// <param name="environment"></param>
 public virtual void SetParameters(GoblinXNA.Graphics.Environment environment)
 {
 }