terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ Apply() [1/2]

override void Terraria.GameContent.Shaders.WaterShaderData.Apply ( )
inlinevirtual

Reimplemented from Terraria.Graphics.Shaders.ShaderData.

Definition at line 223 of file WaterShaderData.cs.

224 {
226 if (usingRenderTargets)
227 {
229 {
230 }
231 bool isGraphicsDeviceAvailable = Main.IsGraphicsDeviceAvailable;
232 float progress = this._progress;
233 if (!usingRenderTargets)
234 {
235 }
236 int screenWidth = Main.screenWidth;
237 int screenHeight = Main.screenHeight;
239 {
240 }
241 if (true)
242 {
243 return;
244 }
245 if (!true)
246 {
247 }
249 if (gameDistortionTarget != null)
250 {
251 Vector2 screenPosition = Main.screenPosition;
253 Vector2 screenPosition2 = Main.screenPosition;
254 float x = this._lastDistortionDrawOffset.X;
255 float y = this._lastDistortionDrawOffset.Y;
256 int width = gameDistortionTarget.Width;
257 int height = gameDistortionTarget.Height;
258 }
259 base.Apply();
260 }
261 }
class f__AnonymousType0<< Count > j__TPar
Microsoft.Xna.Framework.Graphics.Texture2D GameDistortionTarget
static DistortionRenderTargetManager Instance
static WaterRenderTargetManager Instance
Microsoft.Xna.Framework.Graphics.Texture2D GameRenderTarget

References Terraria.GameContent.Shaders.WaterShaderData._lastDistortionDrawOffset, Terraria.GameContent.Shaders.WaterShaderData._progress, Terraria.GameContent.Shaders.WaterShaderData._usingRenderTargets, DistortionRenderTargetManager.GameDistortionTarget, WaterRenderTargetManager.GameRenderTarget, DistortionRenderTargetManager.Instance, WaterRenderTargetManager.Instance, Terraria.Main.IsGraphicsDeviceAvailable, j__TPar, Terraria.Main.screenHeight, Terraria.Main.screenPosition, Terraria.Main.screenWidth, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.