public void Initialize(Engine.GraphicFactory factory, Engine.GraphicInfo ginfo) { if (DebugBox.effect == null) { DebugBox.effect = factory.GetBasicEffect(); DebugBox.effect.VertexColorEnabled = true; DebugBox.effect.LightingEnabled = false; DebugBox.effect.TextureEnabled = false; } }
/// <summary> /// Initializes /// </summary> /// <param name="factory">The factory.</param> /// <param name="ginfo">The ginfo.</param> public void Initialize(Engine.GraphicFactory factory, Engine.GraphicInfo ginfo) { sphereModel = new SimpleModel(factory, "Dsphere", true); if (effect == null) { effect = factory.GetBasicEffect(); effect.TextureEnabled = false; effect.VertexColorEnabled = false; effect.LightingEnabled = lightingEnabled; WireFrameEnabled = true; } }