void IGraphicsObject.OnAdded(DrawingContext context) { this.context = context as DrawingContext3D; this.context.FogStart = FogStart; this.context.FogEnd = FogEnd; this.context.FogColor = FogColor; }
void IGraphicsObject.OnRemoved(DrawingContext context) { if (enabled) { this.context.AmbientLightColor = this.context.AmbientLightColor - ambientLightColor; } this.context = null; }
void IGraphicsObject.OnAdded(DrawingContext context) { this.context = context as DrawingContext3D; if (enabled) { this.context.AmbientLightColor = this.context.AmbientLightColor + ambientLightColor; } }
void IGraphicsObject.OnRemoved(DrawingContext context) { this.context = null; }