public void RegisterEffect(GraphicsDevice Device, ComponentManager Components, string name, params EmitterData[] data)
        {
            List <ParticleEmitter> emitters = new List <ParticleEmitter>();

            foreach (EmitterData emitter in data)
            {
                emitters.Add(Components.RootComponent.AddChild(new ParticleEmitter(Device, Components, name, Matrix.Identity, emitter)
                {
                    LightsWithVoxels = false,
                    Tint             = Color.White,
                }) as ParticleEmitter);
            }
            Effects[name] = new ParticleEffect()
            {
                Emitters = emitters
            };
        }
Exemple #2
0
        public void RegisterEffect(string name, params EmitterData[] data)
        {
            List <ParticleEmitter> emitters = new List <ParticleEmitter>();

            foreach (EmitterData emitter in data)
            {
                emitters.Add(new ParticleEmitter(Components, name, Components.RootComponent, Matrix.Identity, emitter)
                {
                    LightsWithVoxels = false,
                    DepthSort        = false,
                    Tint             = Color.White,
                    FrustrumCull     = false
                });
            }
            Effects[name] = new ParticleEffect()
            {
                Emitters = emitters
            };
        }
Exemple #3
0
        public void RegisterEffect(string name, params EmitterData[] data)
        {
            List<ParticleEmitter> emitters = new List<ParticleEmitter>();

            foreach (EmitterData emitter in data)
            {
                emitters.Add(new ParticleEmitter(Components, name, Components.RootComponent, Matrix.Identity, emitter)
                {
                    LightsWithVoxels = false,
                    DepthSort = false,
                    Tint = Color.White,
                    FrustrumCull = false
                });
            }
            Effects[name] = new ParticleEffect()
            {
                Emitters = emitters
            };
        }