Terraria 1.4.0.5 Source Code
This commit is contained in:
commit
05205f009e
1059 changed files with 563450 additions and 0 deletions
32
GameContent/PlayerRainbowWingsTextureContent.cs
Normal file
32
GameContent/PlayerRainbowWingsTextureContent.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Decompiled with JetBrains decompiler
|
||||
// Type: Terraria.GameContent.PlayerRainbowWingsTextureContent
|
||||
// Assembly: Terraria, Version=1.4.0.5, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 67F9E73E-0A81-4937-A22C-5515CD405A83
|
||||
// Assembly location: C:\Users\mikeyisbaeyt\Downloads\depotdownloader-2.4.5\depots\105601\6707058\Terraria.exe
|
||||
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
|
||||
namespace Terraria.GameContent
|
||||
{
|
||||
public class PlayerRainbowWingsTextureContent : ARenderTargetContentByRequest
|
||||
{
|
||||
protected override void HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch)
|
||||
{
|
||||
Asset<Texture2D> asset = TextureAssets.Extra[171];
|
||||
this.PrepareARenderTarget_AndListenToEvents(ref this._target, device, asset.Width(), asset.Height(), RenderTargetUsage.PreserveContents);
|
||||
device.SetRenderTarget(this._target);
|
||||
device.Clear(Color.Transparent);
|
||||
DrawData drawData = new DrawData(asset.Value, Vector2.Zero, Color.White);
|
||||
spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend);
|
||||
GameShaders.Misc["HallowBoss"].Apply(new DrawData?(drawData));
|
||||
drawData.Draw(spriteBatch);
|
||||
spriteBatch.End();
|
||||
device.SetRenderTarget((RenderTarget2D) null);
|
||||
this._wasPrepared = true;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue