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

◆ QueueRipple() [2/3]

void Terraria.GameContent.Shaders.WaterShaderData.QueueRipple ( Vector2 position,
float strength,
Vector2 size,
RippleShape shape = RippleShape::Square,
float rotation = 0f )
inline

Definition at line 443 of file WaterShaderData.cs.

444 {
445 float g = strength * 0.5f + 0.5f;
446 float num = Math.Min(Math.Abs(strength), 1f);
447 QueueRipple(position, new Color(0.5f, g, 0f, 1f) * num, size, shape, rotation);
448 }
static byte Min(byte val1, byte val2)
Definition Math.cs:912
static double Abs(double value)
void QueueRipple(Vector2 position, float strength=1f, RippleShape shape=RippleShape.Square, float rotation=0f)

References System.Math.Abs(), Microsoft.Xna.Framework.Graphics.Color, System.Math.Min(), and Terraria.GameContent.Shaders.WaterShaderData.QueueRipple().