protected override void CreateScene() { this.Load(WaveContent.Scenes.MyScene); this.teapot = this.EntityManager.Find("teapot"); this.disappearMaterial = new DisappearMaterial(WaveContent.Assets.Textures.tile1_png, WaveContent.Assets.Textures.Noise_png, WaveContent.Assets.Textures.Burn_png); teapot.FindComponent<MaterialsMap>().DefaultMaterial = disappearMaterial; }
protected override void CreateScene() { this.Load(WaveContent.Scenes.MyScene); this.disappearMaterial = new DisappearMaterial(WaveContent.Assets.Textures.tile1_png, WaveContent.Assets.Textures.Noise_png, WaveContent.Assets.Textures.Burn_png); this.teapot = this.EntityManager.Find("Teapot"); this.teapot.FindComponent <MaterialComponent>().Material = disappearMaterial; }