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

◆ DrawStarsInBackground()

void Terraria.Main.DrawStarsInBackground ( SceneArea sceneArea,
bool artificial )
inlineprivate

Definition at line 79903 of file Main.cs.

79904 {
79905 //IL_006c: Unknown result type (might be due to invalid IL or missing references)
79906 //IL_0071: Unknown result type (might be due to invalid IL or missing references)
79907 //IL_007e: Unknown result type (might be due to invalid IL or missing references)
79908 //IL_008a: Unknown result type (might be due to invalid IL or missing references)
79909 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
79910 //IL_00cc: Unknown result type (might be due to invalid IL or missing references)
79911 if (netMode == 2 || ((double)screenPosition.Y >= worldSurface * 16.0 + 16.0 && shimmerAlpha == 0f))
79912 {
79913 return;
79914 }
79915 float num = 1f;
79917 {
79918 float num2 = 1f - GraveyardVisualIntensity * 1.4f;
79919 if (num2 <= 0f)
79920 {
79921 return;
79922 }
79923 num *= num2;
79924 }
79926 if (shimmerAlpha > 0f)
79927 {
79929 }
79930 if (remixWorld || !(255f * (1f - cloudAlpha * atmo) - (float)(int)((Color)(ref colorOfTheSkies)).R - 25f <= 0f))
79931 {
79932 for (int i = 0; i < numStars; i++)
79933 {
79935 }
79936 }
79937 }
static Star[] star
Definition Main.cs:1824
void DrawStar(ref SceneArea sceneArea, float starOpacity, Color bgColorForStars, int i, Star theStar, bool artificial, bool foreground=false)
Definition Main.cs:79943
static int numStars
Definition Main.cs:1445
static float cloudAlpha
Definition Main.cs:1393
static float GraveyardVisualIntensity
Definition Main.cs:1490
static Color ColorOfTheSkies
Definition Main.cs:2660
static double worldSurface
The y-coordinate of the top of the dirt layer, in tile coordinates. Corresponds to 0' on the Depth Me...
Definition Main.cs:1351
static int netMode
Denotes the current network mode: 0 for single player client, 1 for multiplayer client,...
Definition Main.cs:2182
static Vector2 screenPosition
The position of the top left corner of the screen in world coordinates. Modify in M:Terraria....
Definition Main.cs:1864
static float atmo
Definition Main.cs:2654
static float shimmerAlpha
Definition Main.cs:1077
static bool remixWorld
Definition Main.cs:377

References Terraria.Main.atmo, Terraria.Main.cloudAlpha, Terraria.Main.ColorOfTheSkies, Terraria.Main.DrawStar(), Terraria.Main.GraveyardVisualIntensity, Terraria.Main.netMode, Terraria.Main.numStars, Terraria.Main.remixWorld, Terraria.Main.screenPosition, Terraria.Main.shimmerAlpha, Terraria.Main.star, and Terraria.Main.worldSurface.

Referenced by Terraria.Main.DoDraw(), and Terraria.Main.DrawCapture().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: