Esempio n. 1
0
 void IGraphicsObject.OnAdded(DrawingContext context)
 {
     this.context          = context as DrawingContext3D;
     this.context.FogStart = FogStart;
     this.context.FogEnd   = FogEnd;
     this.context.FogColor = FogColor;
 }
Esempio n. 2
0
 void IGraphicsObject.OnRemoved(DrawingContext context)
 {
     if (enabled)
     {
         this.context.AmbientLightColor = this.context.AmbientLightColor - ambientLightColor;
     }
     this.context = null;
 }
Esempio n. 3
0
 void IGraphicsObject.OnAdded(DrawingContext context)
 {
     this.context = context as DrawingContext3D;
     if (enabled)
     {
         this.context.AmbientLightColor = this.context.AmbientLightColor + ambientLightColor;
     }
 }
Esempio n. 4
0
 void IGraphicsObject.OnRemoved(DrawingContext context)
 {
     this.context = null;
 }