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
LightmapperUtils.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000136 RID: 310
8 public static class LightmapperUtils
9 {
10 // Token: 0x060005F5 RID: 1525 RVA: 0x0000AB58 File Offset: 0x00008D58
12 {
13 }
14
15 // Token: 0x060005F6 RID: 1526 RVA: 0x0000AB68 File Offset: 0x00008D68
17 {
18 Color color;
19 float num;
20 return LinearColor.Convert(color, num);
21 }
22
23 // Token: 0x060005F7 RID: 1527 RVA: 0x000021B3 File Offset: 0x000003B3
24 public static float ExtractInnerCone(Light l)
25 {
26 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
27 }
28
29 // Token: 0x060005F8 RID: 1528 RVA: 0x0000AB7C File Offset: 0x00008D7C
31 {
32 throw new MissingMethodException();
33 }
34
35 // Token: 0x060005F9 RID: 1529 RVA: 0x0000AB9C File Offset: 0x00008D9C
36 private static void ApplyColorTemperature(Color cct, LinearColor lightColor)
37 {
38 float g = cct.g;
39 float b = cct.b;
40 }
41
42 // Token: 0x060005FA RID: 1530 RVA: 0x0000ABB8 File Offset: 0x00008DB8
43 public static void Extract(Light l, DirectionalLight dir)
44 {
45 int instanceID = l.GetInstanceID();
46 dir.instanceID = instanceID;
47 LightBakingOutput bakingOutput = l.bakingOutput;
48 LightShadows shadows = l.shadows;
49 Vector3 position = l.transform.position;
50 Quaternion rotation = l.transform.rotation;
52 Color color2 = l.color;
53 float intensity = l.intensity;
55 }
56
57 // Token: 0x060005FB RID: 1531 RVA: 0x0000AC1C File Offset: 0x00008E1C
58 public static void Extract(Light l, PointLight point)
59 {
60 int instanceID = l.GetInstanceID();
61 point.instanceID = instanceID;
62 LightBakingOutput bakingOutput = l.bakingOutput;
63 LightShadows shadows = l.shadows;
64 Vector3 position = l.transform.position;
65 Quaternion rotation = l.transform.rotation;
67 Color color2 = l.color;
68 float intensity = l.intensity;
70 float range = l.range;
72 }
73
74 // Token: 0x060005FC RID: 1532 RVA: 0x0000AC90 File Offset: 0x00008E90
75 public static void Extract(Light l, SpotLight spot)
76 {
77 int instanceID = l.GetInstanceID();
78 spot.instanceID = instanceID;
79 LightBakingOutput bakingOutput = l.bakingOutput;
80 LightShadows shadows = l.shadows;
81 Vector3 position = l.transform.position;
82 Quaternion rotation = l.transform.rotation;
84 Color color2 = l.color;
85 float intensity = l.intensity;
87 float range = l.range;
88 float spotAngle = l.spotAngle;
91 }
92
93 // Token: 0x060005FD RID: 1533 RVA: 0x0000AD14 File Offset: 0x00008F14
94 public static void Extract(Light l, RectangleLight rect)
95 {
96 int instanceID = l.GetInstanceID();
97 rect.instanceID = instanceID;
98 LightBakingOutput bakingOutput = l.bakingOutput;
99 LightShadows shadows = l.shadows;
100 Vector3 position = l.transform.position;
101 Quaternion rotation = l.transform.rotation;
103 Color color2 = l.color;
104 float intensity = l.intensity;
106 float range = l.range;
107 rect.falloff = FalloffType.Legacy;
108 }
109
110 // Token: 0x060005FE RID: 1534 RVA: 0x0000AD88 File Offset: 0x00008F88
111 public static void Extract(Light l, DiscLight disc)
112 {
113 int instanceID = l.GetInstanceID();
114 disc.instanceID = instanceID;
115 LightBakingOutput bakingOutput = l.bakingOutput;
116 LightShadows shadows = l.shadows;
117 Vector3 position = l.transform.position;
118 Quaternion rotation = l.transform.rotation;
120 Color color2 = l.color;
121 float intensity = l.intensity;
123 float range = l.range;
124 disc.falloff = FalloffType.Legacy;
125 }
126
127 // Token: 0x060005FF RID: 1535 RVA: 0x0000ADFC File Offset: 0x00008FFC
128 public static void Extract(Light l, [Out] Cookie cookie)
129 {
130 bool flag = l.cookie;
131 int instanceID = l.cookie.GetInstanceID();
132 }
133 }
134}
class f__AnonymousType0<< Count > j__TPar
static LightMode Extract(LightmapBakeType baketype)
static void Extract(Light l, DirectionalLight dir)
static void ApplyColorTemperature(Color cct, LinearColor lightColor)
static void Extract(Light l, RectangleLight rect)
LightShadows shadows
Definition Light.cs:17
LightBakingOutput bakingOutput
Definition Light.cs:129
float intensity
Definition Light.cs:99
float spotAngle
Definition Light.cs:59
Texture cookie
Definition Light.cs:38
int GetInstanceID()
Definition Object.cs:19
Quaternion rotation
Definition Transform.cs:84
static LinearColor Convert(Color color, float intensity)