Particle3DEmitterTests SwitchMaterialsOfParticles Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D.Particles.Tests
Assembly: DeltaEngine.Rendering3D.Particles.Tests (in DeltaEngine.Rendering3D.Particles.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void SwitchMaterialsOfParticles()
Examples

[Test]
public void SwitchMaterialsOfParticles()
{
    var emitterData = GetEmitterData(logo);
    emitterData.ParticleMaterial.DiffuseMap.BlendMode = BlendMode.Additive;
    var emitter = new ParticleEmitter(emitterData, Vector3D.Zero);
    AdvanceTimeAndUpdateEntities();
    emitter.particles[0].Material = new Material(ShaderFlags.ColoredTextured, "ParticleSpark");
    emitterData.ParticleMaterial.DiffuseMap.BlendMode = BlendMode.Additive;
    AdvanceTimeAndUpdateEntities();
}
See Also