private static void CreateVariableTypeEmitter(ParticleEmitterPositionType type) { var createdEmitterData = CreateData(100, 0.05f, 1.0f); createdEmitterData.PositionType = type; new ParticleEmitter(createdEmitterData, new Vector3D(0.5f, 0.5f, 0.5f)); }
private static Stream CreateEmitter3D(ParticleEmitterPositionType positionType) { var pointEmitter = new ParticleEmitterData(); pointEmitter.ParticleMaterial = new Material(ShaderFlags.ColoredTextured, "DeltaEngineLogo"); pointEmitter.PositionType = positionType; var data = BinaryDataExtensions.SaveToMemoryStream(pointEmitter); data.Seek(0, SeekOrigin.Begin); return(data); }
private static void CreateVariableTypeEmitter(ParticleEmitterPositionType type) { var createdEmitterData = CreateData(100, 0.05f, 1.0f); createdEmitterData.PositionType = type; new ParticleEmitter(createdEmitterData, new Vector3D(0.5f, 0.5f, 0.5f)); }
private static Stream CreateEmitter3D(ParticleEmitterPositionType positionType) { var pointEmitter = new ParticleEmitterData(); pointEmitter.ParticleMaterial = new Material(ShaderFlags.ColoredTextured, "DeltaEngineLogo"); pointEmitter.PositionType = positionType; var data = BinaryDataExtensions.SaveToMemoryStream(pointEmitter); data.Seek(0, SeekOrigin.Begin); return data; }