示例#1
0
文件: Explosion.cs 项目: kayorga/3DSP
 public void Draw(Camera camera)
 {
     graphicsDevice.DepthStencilState = DepthStencilState.DepthRead;
     graphicsDevice.BlendState        = BlendState.Additive;
     billboardEngine.Draw(graphicsDevice, camera);
     graphicsDevice.BlendState        = BlendState.Opaque;
     graphicsDevice.DepthStencilState = DepthStencilState.Default;
     particleEffect.Draw(camera);
 }
示例#2
0
 public void draw(Camera camera)
 {
     if (!active)
     {
         return;
     }
     particleEffect.Draw(camera);
     //bulletOb.Draw(camera);
 }