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.Graphics.Shaders.ScreenShaderData.Apply ( )
inlinevirtual

Reimplemented from Terraria.Graphics.Shaders.ShaderData.

Definition at line 158 of file ScreenShaderData.cs.

159 {
160 if (!true)
161 {
162 }
163 if (!true)
164 {
165 }
166 int screenWidth = Main.screenWidth;
167 int screenHeight = Main.screenHeight;
168 if (!true)
169 {
170 }
171 Vector2 screenPosition = Main.screenPosition;
172 !0 value = this._shader.Value;
173 !0 value2 = this._shader.Value;
174 float uOpacity = this._uOpacity;
175 float globalOpacity = this._globalOpacity;
176 !0 value3 = this._shader.Value;
177 float x = this._uSecondaryColor.X;
178 float y = this._uSecondaryColor.Y;
179 float z = this._uSecondaryColor.Z;
180 !0 value4 = this._shader.Value;
181 !0 value5 = this._shader.Value;
182 !0 value6 = this._shader.Value;
183 !0 value7 = this._shader.Value;
184 float x2 = this._uTargetPosition.X;
185 float y2 = this._uTargetPosition.Y;
186 !0 value8 = this._shader.Value;
187 float x3 = this._uImageOffset.X;
188 float y3 = this._uImageOffset.Y;
189 !0 value9 = this._shader.Value;
190 float uIntensity = this._uIntensity;
191 !0 value10 = this._shader.Value;
192 float uProgress = this._uProgress;
193 !0 value11 = this._shader.Value;
194 float x4 = this._uDirection.X;
195 float y4 = this._uDirection.Y;
196 !0 value12 = this._shader.Value;
199 string <Name>k__BackingField = uCustomImages.<Name>k__BackingField;
202 if (effectParameter != null)
203 {
205 }
206 if (<Name>k__BackingField == null)
207 {
209 base.Apply();
210 return;
211 }
212 if (uAssetImages2 == null)
213 {
214 }
215 GraphicsDevice graphicsDevice;
216 Texture2D[] textures = graphicsDevice.Textures;
217 if (<Name>k__BackingField != null)
218 {
219 !0 value13 = this._shader.Value;
220 string text2;
221 string text = "uImageSize" + text2;
223 if (uCustomImages == null)
224 {
225 }
226 return;
227 }
228 throw new ArrayTypeMismatchException();
229 }
class f__AnonymousType0<< Count > j__TPar
readonly Ref< Effect > _shader
Definition ShaderData.cs:65
T Value
Definition Ref.cs:20

References Terraria.Graphics.Shaders.ScreenShaderData._globalOpacity, Terraria.Graphics.Shaders.ScreenShaderData._imageScales, Terraria.Graphics.Shaders.ShaderData._shader, Terraria.Graphics.Shaders.ScreenShaderData._uAssetImages, Terraria.Graphics.Shaders.ScreenShaderData._uCustomImages, Terraria.Graphics.Shaders.ScreenShaderData._uDirection, Terraria.Graphics.Shaders.ScreenShaderData._uImageOffset, Terraria.Graphics.Shaders.ScreenShaderData._uIntensity, Terraria.Graphics.Shaders.ScreenShaderData._uOpacity, Terraria.Graphics.Shaders.ScreenShaderData._uProgress, Terraria.Graphics.Shaders.ScreenShaderData._uSecondaryColor, Terraria.Graphics.Shaders.ScreenShaderData._uTargetPosition, j__TPar, System.Name, Terraria.Main.screenHeight, Terraria.Main.screenPosition, Terraria.Main.screenWidth, System.text, Microsoft.Xna.Framework.Graphics.GraphicsDevice.Textures, System.value, Terraria.Ref< T >.Value, Microsoft.Xna.Framework.Vector2.X, Microsoft.Xna.Framework.Vector3.X, Microsoft.Xna.Framework.Vector2.Y, Microsoft.Xna.Framework.Vector3.Y, and Microsoft.Xna.Framework.Vector3.Z.

Referenced by Terraria.GameContent.Shaders.SandstormShaderData.Apply().