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

◆ GetDynamicNoiseInternal()

static float Terraria.GameContent.RGB.NoiseHelper.GetDynamicNoiseInternal ( int x,
int y,
float wrappedTime )
inlinestaticprivate

Definition at line 47 of file NoiseHelper.cs.

48 {
49 x &= 0x1F;
50 y &= 0x1F;
51 return Math.Abs(Math.Abs(StaticNoise[y * 32 + x] - wrappedTime) - 0.5f) * 2f;
52 }
static double Abs(double value)
static readonly float[] StaticNoise

References System.Math.Abs(), and Terraria.GameContent.RGB.NoiseHelper.StaticNoise.

Referenced by Terraria.GameContent.RGB.NoiseHelper.GetDynamicNoise(), and Terraria.GameContent.RGB.NoiseHelper.GetDynamicNoise().