Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DrawBack()

static void Terraria.GameContent.Events.ScreenDarkness.DrawBack ( SpriteBatch spriteBatch)
inlinestatic

Definition at line 36 of file ScreenDarkness.cs.

37 {
38 if (screenObstruction != 0f)
39 {
40 Color color = Color.Black * screenObstruction;
41 spriteBatch.Draw(TextureAssets.MagicPixel.Value, new Rectangle(-2, -2, Main.screenWidth + 4, Main.screenHeight + 4), new Rectangle(0, 0, 1, 1), color);
42 }
43 }
void Draw(Texture2D texture, Vector2 position, Color color)

References Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw(), Terraria.GameContent.TextureAssets.MagicPixel, Terraria.Main.screenHeight, Terraria.GameContent.Events.ScreenDarkness.screenObstruction, and Terraria.Main.screenWidth.

Referenced by Terraria.Main.DoDraw().