Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SandstormShaderData.cs
Go to the documentation of this file.
3
5
7{
9
10 public SandstormShaderData(string passName)
11 : base(passName)
12 {
13 }
14
15 public override void Update(GameTime gameTime)
16 {
17 Vector2 vector = new Vector2(0f - Main.windSpeedCurrent, -1f) * new Vector2(20f, 0.1f);
18 vector.Normalize();
19 vector *= new Vector2(2f, 0.2f);
21 {
22 _texturePosition += vector * (float)gameTime.ElapsedGameTime.TotalSeconds;
23 }
24 _texturePosition.X %= 10f;
25 _texturePosition.Y %= 10f;
26 UseDirection(vector);
27 base.Update(gameTime);
28 }
29
30 public override void Apply()
31 {
33 base.Apply();
34 }
35}
ScreenShaderData UseTargetPosition(Vector2 position)
ScreenShaderData UseDirection(Vector2 direction)
static float windSpeedCurrent
Definition Main.cs:1360
static bool hasFocus
Definition Main.cs:1781
static bool gamePaused
Definition Main.cs:1072