Пример #1
0
 public BulletParticleEmitterComponent()
 {
     Type = ParticleEmitterType.GpuStatic;
     Shader = new ShaderClassSource("ParticleUpdaterBullet");
     MeshUpdate += OnMeshUpdate;
     UpdateData += UpdateParticlesData;
     UpdateSystem += OnUpdateSystem;
     ParticleElementSize = Utilities.SizeOf<ScriptParticleSmoke.ParticleData>();
     Description = new BulletEmitterDescription();
 }
 public BulletParticleEmitterComponent()
 {
     Type                = ParticleEmitterType.GpuStatic;
     Shader              = new ShaderClassSource("ParticleUpdaterBullet");
     MeshUpdate         += OnMeshUpdate;
     UpdateData         += UpdateParticlesData;
     UpdateSystem       += OnUpdateSystem;
     ParticleElementSize = Utilities.SizeOf <ScriptParticleSmoke.ParticleData>();
     Description         = new BulletEmitterDescription();
 }