Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
PlayerRainbowWingsTextureContent.cs
Go to the documentation of this file.
6
8
10{
11 protected override void HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch)
12 {
14 PrepareARenderTarget_AndListenToEvents(ref _target, device, val.Width(), val.Height(), RenderTargetUsage.PreserveContents);
16 device.Clear(Color.Transparent);
17 DrawData value = new DrawData(val.Value, Vector2.Zero, Color.White);
18 spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend);
19 GameShaders.Misc["HallowBoss"].Apply(value);
20 value.Draw(spriteBatch);
21 spriteBatch.End();
22 device.SetRenderTarget(null);
23 _wasPrepared = true;
24 }
25}
static readonly BlendState AlphaBlend
Definition BlendState.cs:36
void Clear(ClearOptions options, Vector4 color, float depth, int stencil)
unsafe void SetRenderTarget(RenderTargetCube renderTarget, CubeMapFace cubeMapFace)
void PrepareARenderTarget_AndListenToEvents(ref RenderTarget2D target, GraphicsDevice device, int neededWidth, int neededHeight, RenderTargetUsage usage)
override void HandleUseReqest(GraphicsDevice device, SpriteBatch spriteBatch)
static Asset< Texture2D >[] Extra
static Dictionary< string, MiscShaderData > Misc
static Color Transparent
Definition Color.cs:76