Beispiel #1
0
 public SkyHost(Game game)
   : base(game)
 {
   this.DrawOrder = 0;
   this.UpdateOrder = 11;
   SkyHost.Instance = this;
   this.stars = new Mesh()
   {
     Culling = CullMode.CullClockwiseFace,
     AlwaysOnTop = true,
     DepthWrites = false,
     SamplerState = SamplerState.PointWrap
   };
   ServiceHelper.AddComponent((IGameComponent) new CloudShadowsHost(game, this));
 }
Beispiel #2
0
 public CloudShadowsHost(Game game, SkyHost host)
   : base(game)
 {
   this.DrawOrder = 100;
   this.Host = host;
 }