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

◆ Draw()

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

Definition at line 49 of file SandstormSky.cs.

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

References Terraria.GameContent.Skies.SandstormSky._opacity, 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, Terraria.GameContent.Events.Sandstorm.Severity, and Microsoft.Xna.Framework.Graphics.Vector4.