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

◆ Draw()

override void Terraria.GameContent.Skies.MoonLordSky.Draw ( SpriteBatch spriteBatch,
float minDepth,
float maxDepth )
inline

Definition at line 88 of file MoonLordSky.cs.

89 {
90 if (maxDepth >= 0f && minDepth < 0f)
91 {
92 float intensity = GetIntensity();
93 spriteBatch.Draw(TextureAssets.BlackTile.Value, new Rectangle(0, 0, Main.screenWidth, Main.screenHeight), Color.Black * intensity);
94 }
95 }
void Draw(Texture2D texture, Vector2 position, Color color)

References Microsoft.Xna.Framework.Color.Black, Terraria.GameContent.TextureAssets.BlackTile, Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw(), Terraria.GameContent.Skies.MoonLordSky.GetIntensity(), Terraria.Main.screenHeight, and Terraria.Main.screenWidth.