This repository has been archived by the owner on Apr 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
setupCameraTransform.asm
327 lines (327 loc) · 8.59 KB
/
setupCameraTransform.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
// access flags 0x1
public setupCameraTransform(FI)V
L0
LINENUMBER 714 L0
ALOAD 0
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.gameSettings : Lnet/minecraft/client/settings/GameSettings;
GETFIELD net/minecraft/client/settings/GameSettings.renderDistanceChunks : I
BIPUSH 16
IMUL
I2F
PUTFIELD net/minecraft/client/renderer/EntityRenderer.farPlaneDistance : F
L1
LINENUMBER 715 L1
SIPUSH 5889
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.matrixMode (I)V
L2
LINENUMBER 716 L2
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.loadIdentity ()V
L3
LINENUMBER 717 L3
LDC 0.07
FSTORE 3
L4
LINENUMBER 719 L4
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.gameSettings : Lnet/minecraft/client/settings/GameSettings;
GETFIELD net/minecraft/client/settings/GameSettings.anaglyph : Z
IFEQ L5
L6
LINENUMBER 721 L6
ILOAD 2
ICONST_2
IMUL
ICONST_1
ISUB
INEG
I2F
LDC 0.07
FMUL
FCONST_0
FCONST_0
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.translate (FFF)V
L5
LINENUMBER 724 L5
FRAME APPEND [F]
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.cameraZoom : D
DCONST_1
DCMPL
IFEQ L7
L8
LINENUMBER 726 L8
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.cameraYaw : D
D2F
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.cameraPitch : D
DNEG
D2F
FCONST_0
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.translate (FFF)V
L9
LINENUMBER 727 L9
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.cameraZoom : D
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.cameraZoom : D
DCONST_1
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.scale (DDD)V
L7
LINENUMBER 730 L7
FRAME SAME
ALOAD 0
FLOAD 1
ICONST_1
INVOKESPECIAL net/minecraft/client/renderer/EntityRenderer.getFOVModifier (FZ)F
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.displayWidth : I
I2F
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.displayHeight : I
I2F
FDIV
LDC 0.05
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.farPlaneDistance : F
GETSTATIC net/minecraft/util/math/MathHelper.SQRT_2 : F
FMUL
INVOKESTATIC org/lwjgl/util/glu/Project.gluPerspective (FFFF)V
L10
LINENUMBER 731 L10
SIPUSH 5888
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.matrixMode (I)V
L11
LINENUMBER 732 L11
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.loadIdentity ()V
L12
LINENUMBER 734 L12
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.gameSettings : Lnet/minecraft/client/settings/GameSettings;
GETFIELD net/minecraft/client/settings/GameSettings.anaglyph : Z
IFEQ L13
L14
LINENUMBER 736 L14
ILOAD 2
ICONST_2
IMUL
ICONST_1
ISUB
I2F
LDC 0.1
FMUL
FCONST_0
FCONST_0
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.translate (FFF)V
L13
LINENUMBER 739 L13
FRAME SAME
ALOAD 0
FLOAD 1
INVOKESPECIAL net/minecraft/client/renderer/EntityRenderer.hurtCameraEffect (F)V
L15
LINENUMBER 741 L15
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.gameSettings : Lnet/minecraft/client/settings/GameSettings;
GETFIELD net/minecraft/client/settings/GameSettings.viewBobbing : Z
IFEQ L16
L17
LINENUMBER 743 L17
ALOAD 0
FLOAD 1
INVOKESPECIAL net/minecraft/client/renderer/EntityRenderer.setupViewBobbing (F)V
L16
LINENUMBER 746 L16
FRAME SAME
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.thePlayer : Lnet/minecraft/client/entity/EntityPlayerSP;
GETFIELD net/minecraft/client/entity/EntityPlayerSP.prevTimeInPortal : F
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.thePlayer : Lnet/minecraft/client/entity/EntityPlayerSP;
GETFIELD net/minecraft/client/entity/EntityPlayerSP.timeInPortal : F
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.thePlayer : Lnet/minecraft/client/entity/EntityPlayerSP;
GETFIELD net/minecraft/client/entity/EntityPlayerSP.prevTimeInPortal : F
FSUB
FLOAD 1
FMUL
FADD
FSTORE 4
L18
LINENUMBER 748 L18
FLOAD 4
FCONST_0
FCMPL
IFLE L19
L20
LINENUMBER 750 L20
BIPUSH 20
ISTORE 5
L21
LINENUMBER 752 L21
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.mc : Lnet/minecraft/client/Minecraft;
GETFIELD net/minecraft/client/Minecraft.thePlayer : Lnet/minecraft/client/entity/EntityPlayerSP;
GETSTATIC net/minecraft/init/MobEffects.NAUSEA : Lnet/minecraft/potion/Potion;
INVOKEVIRTUAL net/minecraft/client/entity/EntityPlayerSP.isPotionActive (Lnet/minecraft/potion/Potion;)Z
IFEQ L22
L23
LINENUMBER 754 L23
BIPUSH 7
ISTORE 5
L22
LINENUMBER 757 L22
FRAME APPEND [F I]
LDC 5.0
FLOAD 4
FLOAD 4
FMUL
LDC 5.0
FADD
FDIV
FLOAD 4
LDC 0.04
FMUL
FSUB
FSTORE 6
L24
LINENUMBER 758 L24
FLOAD 6
FLOAD 6
FMUL
FSTORE 6
L25
LINENUMBER 759 L25
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.rendererUpdateCount : I
I2F
FLOAD 1
FADD
ILOAD 5
I2F
FMUL
FCONST_0
FCONST_1
FCONST_1
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.rotate (FFFF)V
L26
LINENUMBER 760 L26
FCONST_1
FLOAD 6
FDIV
FCONST_1
FCONST_1
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.scale (FFF)V
L27
LINENUMBER 761 L27
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.rendererUpdateCount : I
I2F
FLOAD 1
FADD
FNEG
ILOAD 5
I2F
FMUL
FCONST_0
FCONST_1
FCONST_1
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.rotate (FFFF)V
L19
LINENUMBER 764 L19
FRAME CHOP 1
ALOAD 0
FLOAD 1
INVOKESPECIAL net/minecraft/client/renderer/EntityRenderer.orientCamera (F)V
L28
LINENUMBER 766 L28
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.debugView : Z
IFEQ L29
L30
LINENUMBER 768 L30
ALOAD 0
GETFIELD net/minecraft/client/renderer/EntityRenderer.debugViewDirection : I
TABLESWITCH
0: L31
1: L32
2: L33
3: L34
4: L35
default: L29
L31
LINENUMBER 771 L31
FRAME SAME
LDC 90.0
FCONST_0
FCONST_1
FCONST_0
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.rotate (FFFF)V
L36
LINENUMBER 772 L36
GOTO L29
L32
LINENUMBER 774 L32
FRAME SAME
LDC 180.0
FCONST_0
FCONST_1
FCONST_0
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.rotate (FFFF)V
L37
LINENUMBER 775 L37
GOTO L29
L33
LINENUMBER 777 L33
FRAME SAME
LDC -90.0
FCONST_0
FCONST_1
FCONST_0
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.rotate (FFFF)V
L38
LINENUMBER 778 L38
GOTO L29
L34
LINENUMBER 780 L34
FRAME SAME
LDC 90.0
FCONST_1
FCONST_0
FCONST_0
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.rotate (FFFF)V
L39
LINENUMBER 781 L39
GOTO L29
L35
LINENUMBER 783 L35
FRAME SAME
LDC -90.0
FCONST_1
FCONST_0
FCONST_0
INVOKESTATIC net/minecraft/client/renderer/GlStateManager.rotate (FFFF)V
L29
LINENUMBER 786 L29
FRAME SAME
RETURN
L40
LOCALVARIABLE i I L21 L19 5
LOCALVARIABLE f2 F L24 L19 6
LOCALVARIABLE this Lnet/minecraft/client/renderer/EntityRenderer; L0 L40 0
LOCALVARIABLE partialTicks F L0 L40 1
LOCALVARIABLE pass I L0 L40 2
LOCALVARIABLE f F L4 L40 3
LOCALVARIABLE f1 F L18 L40 4
MAXSTACK = 6
MAXLOCALS = 7