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

◆ Draw()

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

Definition at line 48 of file BlizzardSky.cs.

49 {
50 if (minDepth < 1f || maxDepth == float.MaxValue)
51 {
52 float num = Math.Min(1f, Main.cloudAlpha * 2f);
53 Color color = new Color(new Vector4(1f) * Main.ColorOfTheSkies.ToVector4()) * _opacity * 0.7f * num;
54 spriteBatch.Draw(TextureAssets.MagicPixel.Value, new Rectangle(0, 0, Main.screenWidth, Main.screenHeight), color);
55 }
56 }
void Draw(Texture2D texture, Vector2 position, Color color)
static byte Min(byte val1, byte val2)
Definition Math.cs:912

References Terraria.GameContent.Skies.BlizzardSky._opacity, Terraria.Main.cloudAlpha, Microsoft.Xna.Framework.Graphics.Color, Terraria.Main.ColorOfTheSkies, Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw(), Terraria.GameContent.TextureAssets.MagicPixel, System.Math.Min(), Terraria.Main.screenHeight, Terraria.Main.screenWidth, and Microsoft.Xna.Framework.Graphics.Vector4.