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
HairShaderData.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
using
Microsoft.Xna.Framework
;
4
using
Microsoft.Xna.Framework.Graphics
;
5
using
ReLogic.Content
;
6
using
Terraria.DataStructures
;
7
8
namespace
Terraria.Graphics.Shaders
9
{
10
// Token: 0x02000748 RID: 1864
11
public
class
HairShaderData
:
ShaderData
12
{
13
// Token: 0x1700077F RID: 1919
14
// (get) Token: 0x06003D63 RID: 15715 RVA: 0x00239118 File Offset: 0x00237318
15
public
bool
ShaderDisabled
16
{
17
get
18
{
19
return
this.
_shaderDisabled
;
20
}
21
}
22
23
// Token: 0x06003D64 RID: 15716 RVA: 0x0023912C File Offset: 0x0023732C
24
public
HairShaderData
(
Ref<Effect>
shader,
string
passName
)
25
{
26
if
(!
true
)
27
{
28
}
29
if
(
true
)
30
{
31
return
;
32
}
33
if
(!
true
)
34
{
35
}
36
this._uSecondaryColor.Z
= (float)1;
37
if
(!
true
)
38
{
39
}
40
if
(!
true
)
41
{
42
}
43
base
..ctor();
44
this._shader
= shader;
45
this._passName
=
passName
;
46
}
47
48
// Token: 0x06003D65 RID: 15717 RVA: 0x0023916C File Offset: 0x0023736C
49
public
virtual
void
Apply
(
Player
player, [Optional]
DrawData
?
drawData
)
50
{
51
bool
shaderDisabled
= this.
_shaderDisabled
;
52
!0
value
= this.
_shader
.
Value
;
53
float
x = this.
_uColor
.
X
;
54
float
y = this.
_uColor
.
Y
;
55
float
z = this.
_uColor
.
Z
;
56
!0
value2
= this.
_shader
.
Value
;
57
float
uSaturation
= this.
_uSaturation
;
58
!0
value3
= this.
_shader
.
Value
;
59
float
x2
= this.
_uSecondaryColor
.
X
;
60
float
y2
= this.
_uSecondaryColor
.
Y
;
61
float
z2
= this.
_uSecondaryColor
.
Z
;
62
!0
value4
= this.
_shader
.
Value
;
63
if
(
"uColor"
==
null
)
64
{
65
}
66
!0
value5
= this.
_shader
.
Value
;
67
float
uOpacity
= this.
_uOpacity
;
68
!0
value6
= this.
_shader
.
Value
;
69
float
x3
= this.
_uTargetPosition
.
X
;
70
float
y3
= this.
_uTargetPosition
.
Y
;
71
!0
value7
= this.
_shader
.
Value
;
72
!0
value8
= this.
_shader
.
Value
;
73
if
(
"uColor"
==
null
)
74
{
75
}
76
Vector2
screenPosition =
Main
.
screenPosition
;
77
!0
value9
= this.
_shader
.
Value
;
78
}
79
80
// Token: 0x06003D66 RID: 15718 RVA: 0x00239318 File Offset: 0x00237518
81
public
virtual
Color
GetColor
(
Player
player,
Color
lightColor)
82
{
83
if
(!
true
)
84
{
85
return
;
86
}
87
}
88
89
// Token: 0x06003D67 RID: 15719 RVA: 0x0023932C File Offset: 0x0023752C
90
public
HairShaderData
UseColor
(
float
r,
float
g,
float
b)
91
{
92
return
this
;
93
}
94
95
// Token: 0x06003D68 RID: 15720 RVA: 0x0023933C File Offset: 0x0023753C
96
public
HairShaderData
UseColor
(
Color
color)
97
{
98
return
this
;
99
}
100
101
// Token: 0x06003D69 RID: 15721 RVA: 0x0023934C File Offset: 0x0023754C
102
public
HairShaderData
UseColor
(
Vector3
color)
103
{
104
return
this
;
105
}
106
107
// Token: 0x06003D6A RID: 15722 RVA: 0x0023935C File Offset: 0x0023755C
108
public
HairShaderData
UseImage
(
string
path)
109
{
110
if
(!
true
)
111
{
112
}
113
return
this
;
114
}
115
116
// Token: 0x06003D6B RID: 15723 RVA: 0x00239370 File Offset: 0x00237570
117
public
HairShaderData
UseOpacity
(
float
alpha)
118
{
119
return
this
;
120
}
121
122
// Token: 0x06003D6C RID: 15724 RVA: 0x00239380 File Offset: 0x00237580
123
public
HairShaderData
UseSecondaryColor
(
float
r,
float
g,
float
b)
124
{
125
return
this
;
126
}
127
128
// Token: 0x06003D6D RID: 15725 RVA: 0x00239390 File Offset: 0x00237590
129
public
HairShaderData
UseSecondaryColor
(
Color
color)
130
{
131
return
this
;
132
}
133
134
// Token: 0x06003D6E RID: 15726 RVA: 0x002393A0 File Offset: 0x002375A0
135
public
HairShaderData
UseSecondaryColor
(
Vector3
color)
136
{
137
return
this
;
138
}
139
140
// Token: 0x06003D6F RID: 15727 RVA: 0x002393B0 File Offset: 0x002375B0
141
public
HairShaderData
UseSaturation
(
float
saturation
)
142
{
143
return
this
;
144
}
145
146
// Token: 0x06003D70 RID: 15728 RVA: 0x002393C0 File Offset: 0x002375C0
147
public
HairShaderData
UseTargetPosition
(
Vector2
position)
148
{
149
return
this
;
150
}
151
152
// Token: 0x04007C46 RID: 31814
153
protected
Vector3
_uColor
;
154
155
// Token: 0x04007C47 RID: 31815
156
protected
Vector3
_uSecondaryColor
;
157
158
// Token: 0x04007C48 RID: 31816
159
protected
float
_uSaturation
;
160
161
// Token: 0x04007C49 RID: 31817
162
protected
float
_uOpacity
;
163
164
// Token: 0x04007C4A RID: 31818
165
protected
Asset<Texture2D>
_uImage
;
166
167
// Token: 0x04007C4B RID: 31819
168
protected
bool
_shaderDisabled
;
169
170
// Token: 0x04007C4C RID: 31820
171
private
Vector2
_uTargetPosition
;
172
}
173
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
ReLogic.Content.Asset
Definition
Asset.cs:10
Terraria.Graphics.Shaders.HairShaderData.GetColor
virtual Color GetColor(Player player, Color lightColor)
Definition
HairShaderData.cs:81
Terraria.Graphics.Shaders.HairShaderData.UseColor
HairShaderData UseColor(Color color)
Definition
HairShaderData.cs:96
Terraria.Graphics.Shaders.HairShaderData._shaderDisabled
bool _shaderDisabled
Definition
HairShaderData.cs:168
Terraria.Graphics.Shaders.HairShaderData.Apply
virtual void Apply(Player player, [Optional] DrawData? drawData)
Definition
HairShaderData.cs:49
Terraria.Graphics.Shaders.HairShaderData._uColor
Vector3 _uColor
Definition
HairShaderData.cs:153
Terraria.Graphics.Shaders.HairShaderData._uSaturation
float _uSaturation
Definition
HairShaderData.cs:159
Terraria.Graphics.Shaders.HairShaderData.UseSaturation
HairShaderData UseSaturation(float saturation)
Definition
HairShaderData.cs:141
Terraria.Graphics.Shaders.HairShaderData._uImage
Asset< Texture2D > _uImage
Definition
HairShaderData.cs:165
Terraria.Graphics.Shaders.HairShaderData._uSecondaryColor
Vector3 _uSecondaryColor
Definition
HairShaderData.cs:156
Terraria.Graphics.Shaders.HairShaderData.ShaderDisabled
bool ShaderDisabled
Definition
HairShaderData.cs:16
Terraria.Graphics.Shaders.HairShaderData.UseSecondaryColor
HairShaderData UseSecondaryColor(float r, float g, float b)
Definition
HairShaderData.cs:123
Terraria.Graphics.Shaders.HairShaderData.UseColor
HairShaderData UseColor(float r, float g, float b)
Definition
HairShaderData.cs:90
Terraria.Graphics.Shaders.HairShaderData.UseSecondaryColor
HairShaderData UseSecondaryColor(Vector3 color)
Definition
HairShaderData.cs:135
Terraria.Graphics.Shaders.HairShaderData.UseSecondaryColor
HairShaderData UseSecondaryColor(Color color)
Definition
HairShaderData.cs:129
Terraria.Graphics.Shaders.HairShaderData.HairShaderData
HairShaderData(Ref< Effect > shader, string passName)
Definition
HairShaderData.cs:24
Terraria.Graphics.Shaders.HairShaderData.UseImage
HairShaderData UseImage(string path)
Definition
HairShaderData.cs:108
Terraria.Graphics.Shaders.HairShaderData.UseOpacity
HairShaderData UseOpacity(float alpha)
Definition
HairShaderData.cs:117
Terraria.Graphics.Shaders.HairShaderData._uOpacity
float _uOpacity
Definition
HairShaderData.cs:162
Terraria.Graphics.Shaders.HairShaderData._uTargetPosition
Vector2 _uTargetPosition
Definition
HairShaderData.cs:171
Terraria.Graphics.Shaders.HairShaderData.UseColor
HairShaderData UseColor(Vector3 color)
Definition
HairShaderData.cs:102
Terraria.Graphics.Shaders.HairShaderData.UseTargetPosition
HairShaderData UseTargetPosition(Vector2 position)
Definition
HairShaderData.cs:147
Terraria.Graphics.Shaders.HairShaderData
Definition
HairShaderData.cs:12
Terraria.Graphics.Shaders.ShaderData._shader
readonly Ref< Effect > _shader
Definition
ShaderData.cs:65
Terraria.Graphics.Shaders.ShaderData
Definition
ShaderData.cs:10
Terraria.Main.screenPosition
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition
Main.cs:1973
Terraria.Main
Definition
Main.cs:67
Terraria.Player
Definition
Player.cs:33
Terraria.Ref.Value
T Value
Definition
Ref.cs:20
Terraria.Ref
Definition
Ref.cs:7
Microsoft.Xna.Framework.Graphics
Definition
Blend.cs:4
Microsoft.Xna.Framework
Definition
AudioChannels.cs:4
ReLogic.Content
Definition
Asset.cs:7
System.Runtime.InteropServices
Definition
_Activator.cs:4
System.ExceptionArgument.value
@ value
System
Definition
__ComObject.cs:4
Terraria.DataStructures
Definition
AEntitySource_OnHit.cs:4
Terraria.Graphics.Shaders
Definition
ArmorShaderData.cs:10
Microsoft.Xna.Framework.Graphics.Color
Definition
Color.cs:12
Microsoft.Xna.Framework.Vector2.X
float X
Definition
Vector2.cs:698
Microsoft.Xna.Framework.Vector2.Y
float Y
Definition
Vector2.cs:701
Microsoft.Xna.Framework.Vector2
Definition
Vector2.cs:10
Microsoft.Xna.Framework.Vector3.Y
float Y
Definition
Vector3.cs:911
Microsoft.Xna.Framework.Vector3.Z
float Z
Definition
Vector3.cs:914
Microsoft.Xna.Framework.Vector3.X
float X
Definition
Vector3.cs:908
Microsoft.Xna.Framework.Vector3
Definition
Vector3.cs:11
Terraria.DataStructures.DrawData
Definition
DrawData.cs:9
source
Terraria
Graphics
Shaders
HairShaderData.cs
Generated by
1.10.0