コード例 #1
0
ファイル: Charge.cs プロジェクト: kayorga/3DSP
 public Charge(Vector3 position, GraphicsDevice gDevice, ContentManager Content)
 {
     graphicsDevice = gDevice;
     Position = position;
     Texture2D texture = Content.Load<Texture2D>("Particles/particle");
     billboardEngine = new BillboardEngine(5, graphicsDevice);
     billboardEngine.Effect.Texture = texture;
     particleEffect = new ChargeParticleEffect(10000, graphicsDevice, texture, Color.Blue, Color.Green, 0.4f);
     particleEffect.VelocityScaling = 7.0f;
 }
コード例 #2
0
        public Charge(Vector3 position, GraphicsDevice gDevice, ContentManager Content)
        {
            graphicsDevice = gDevice;
            Position       = position;
            Texture2D texture = Content.Load <Texture2D>("Particles/particle");

            billboardEngine = new BillboardEngine(5, graphicsDevice);
            billboardEngine.Effect.Texture = texture;
            particleEffect = new ChargeParticleEffect(10000, graphicsDevice, texture, Color.Blue, Color.Green, 0.4f);
            particleEffect.VelocityScaling = 7.0f;
        }