protected override bool OnAttached() { var effect = assetsService.Load <Effect>(EvergineContent.Effects.BasicColor); if (effect == null) { return(false); } var opaqueLayer = assetsService.Load <RenderLayerDescription>(DefaultResourcesIDs.OpaqueRenderLayerID); if (opaqueLayer == null) { return(false); } this.LightVisualMaterial = new BasicColor(effect) { LayerDescription = opaqueLayer, }; this.RefreshLightVisual(); return(base.OnAttached()); }