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

◆ SetShimmerVertexColors_Sparkle()

static VertexColors Terraria.GameContent.Liquid.LiquidRenderer.SetShimmerVertexColors_Sparkle ( ref VertexColors colors,
float opacity,
int x,
int y,
bool top )
inlinestatic

Definition at line 717 of file LiquidRenderer.cs.

718 {
719 colors.BottomLeftColor = GetShimmerGlitterColor(top, x, y + 1);
720 colors.BottomRightColor = GetShimmerGlitterColor(top, x + 1, y + 1);
721 colors.TopLeftColor = GetShimmerGlitterColor(top, x, y);
722 colors.TopRightColor = GetShimmerGlitterColor(top, x + 1, y);
723 colors.BottomLeftColor *= opacity;
724 colors.BottomRightColor *= opacity;
725 colors.TopLeftColor *= opacity;
726 colors.TopRightColor *= opacity;
727 return colors;
728 }
static Color GetShimmerGlitterColor(bool top, float worldPositionX, float worldPositionY)

References Terraria.GameContent.Liquid.LiquidRenderer.GetShimmerGlitterColor().

Referenced by Terraria.GameContent.Liquid.LiquidRenderer.DrawShimmer(), and Terraria.WaterfallManager.DrawWaterfall().