Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
        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;
        }