54 GameShaders.
Armor.BindShader(1032,
new ArmorShaderData(pixelShaderRef,
"ArmorColoredAndBlackGradient")).UseColor(1f, 0f, 0f).UseSecondaryColor(1f, 1f, 0f)
56 GameShaders.
Armor.BindShader(3550,
new ArmorShaderData(pixelShaderRef,
"ArmorColoredAndSilverTrimGradient")).UseColor(1f, 0f, 0f).UseSecondaryColor(1f, 1f, 0f)
61 GameShaders.
Armor.BindShader(1036,
new ArmorShaderData(pixelShaderRef,
"ArmorColoredAndBlackGradient")).UseColor(0f, 0f, 1f).UseSecondaryColor(0f, 1f, 1f)
63 GameShaders.
Armor.BindShader(3552,
new ArmorShaderData(pixelShaderRef,
"ArmorColoredAndSilverTrimGradient")).UseColor(0f, 0f, 1f).UseSecondaryColor(0f, 1f, 1f)
68 GameShaders.
Armor.BindShader(1034,
new ArmorShaderData(pixelShaderRef,
"ArmorColoredAndBlackGradient")).UseColor(0f, 1f, 0f).UseSecondaryColor(1f, 1f, 0f)
70 GameShaders.
Armor.BindShader(3551,
new ArmorShaderData(pixelShaderRef,
"ArmorColoredAndSilverTrimGradient")).UseColor(0f, 1f, 0f).UseSecondaryColor(1f, 1f, 0f)
106 .UseSecondaryColor(0f, 0f, 0.1f);
108 .UseSecondaryColor(0.45f, 0.1f, 0.3f);
110 .UseSecondaryColor(1.5f, 1f, 2.2f);
112 .UseSecondaryColor(0.2f, -0.2f, -0.2f);
114 .UseSecondaryColor(0.3f, 0.3f, 0.3f);
123 GameShaders.
Armor.BindShader(3598,
new ArmorShaderData(pixelShaderRef,
"ArmorHades")).UseColor(0.1f, 0.1f, 0.1f).UseSecondaryColor(0.4f, 0.05f, 0.025f);
126 .UseSecondaryColor(0.7f, 0.5f, 0.3f);
127 GameShaders.
Armor.BindShader(3535,
new ArmorShaderData(pixelShaderRef,
"ArmorShiftingPearlsands")).UseImage(
"Images/Misc/noise").UseColor(1.1f, 0.8f, 0.9f)
128 .UseSecondaryColor(0.35f, 0.25f, 0.44f);
131 .UseSecondaryColor(1f, 1f, 1f)
134 .UseSecondaryColor(1f, 1f, 1f)
137 .UseSecondaryColor(1f, 1f, 1f)
163 newColor.B =
byte.MaxValue;
164 newColor.G = (byte)((1f - (
float)player.statMana / (float)player.
statManaMax2) * 180f + 75f);
174 if (center.
Y < num27)
176 float num31 = center.Y / num27;
177 float num32 = 1f - num31;
178 newColor.R = (byte)(116f * num32 + 28f * num31);
179 newColor.G = (byte)(160f * num32 + 216f * num31);
180 newColor.B = (byte)(249f * num32 + 94f * num31);
182 else if (center.
Y < num28)
185 float num34 = (center.Y - num33) / (num28 - num33);
186 float num35 = 1f - num34;
187 newColor.R = (byte)(28f * num35 + 151f * num34);
188 newColor.G = (byte)(216f * num35 + 107f * num34);
189 newColor.B = (byte)(94f * num35 + 75f * num34);
191 else if (center.
Y < num29)
194 float num37 = (center.Y - num36) / (num29 - num36);
195 float num38 = 1f - num37;
196 newColor.R = (byte)(151f * num38 + 128f * num37);
197 newColor.G = (byte)(107f * num38 + 128f * num37);
198 newColor.B = (byte)(75f * num38 + 128f * num37);
200 else if (center.
Y < num30)
203 float num40 = (center.Y - num39) / (num30 - num39);
204 float num41 = 1f - num40;
205 newColor.R = (byte)(128f * num41 + 255f * num40);
206 newColor.G = (byte)(128f * num41 + 50f * num40);
207 newColor.B = (byte)(128f * num41 + 15f * num40);
211 newColor.R =
byte.MaxValue;
220 for (
int i = 0; i < 54; i++)
239 if (num15 < 0 || num15 > 999999999)
250 if ((
float)num15 < num16)
252 float num19 = (float)num15 / num16;
253 float num20 = 1f - num19;
254 newColor.R = (byte)((
float)(int)color8.
R * num20 + (
float)(int)color9.
R * num19);
255 newColor.G = (byte)((
float)(int)color8.
G * num20 + (
float)(int)color9.
G * num19);
256 newColor.B = (byte)((
float)(int)color8.
B * num20 + (
float)(int)color9.
B * num19);
258 else if ((
float)num15 < num17)
261 float num22 = ((float)num15 - num21) / (num17 - num21);
262 float num23 = 1f - num22;
263 newColor.R = (byte)((
float)(int)color9.
R * num23 + (
float)(int)color10.
R * num22);
264 newColor.G = (byte)((
float)(int)color9.
G * num23 + (
float)(int)color10.
G * num22);
265 newColor.B = (byte)((
float)(int)color9.
B * num23 + (
float)(int)color10.
B * num22);
267 else if ((
float)num15 < num18)
270 float num25 = ((float)num15 - num24) / (num18 - num24);
271 float num26 = 1f - num25;
272 newColor.R = (byte)((
float)(int)color10.
R * num26 + (
float)(int)color11.
R * num25);
273 newColor.G = (byte)((
float)(int)color10.
G * num26 + (
float)(int)color11.
G * num25);
274 newColor.B = (byte)((
float)(int)color10.
B * num26 + (
float)(int)color11.
B * num25);
292 float num5 = (float)(
Main.
time / 27000.0);
293 float num6 = 1f - num5;
294 newColor.R = (byte)((
float)(int)color4.
R * num6 + (
float)(int)color5.
R * num5);
295 newColor.G = (byte)((
float)(int)color4.
G * num6 + (
float)(int)color5.
G * num5);
296 newColor.B = (byte)((
float)(int)color4.
B * num6 + (
float)(int)color5.
B * num5);
301 float num8 = (float)((
Main.
time - (
double)num7) / (54000.0 - (
double)num7));
302 float num9 = 1f - num8;
303 newColor.R = (byte)((
float)(int)color5.
R * num9 + (
float)(int)color6.
R * num8);
304 newColor.G = (byte)((
float)(int)color5.
G * num9 + (
float)(int)color6.
G * num8);
305 newColor.B = (byte)((
float)(int)color5.
B * num9 + (
float)(int)color6.
B * num8);
310 float num10 = (float)(
Main.
time / 16200.0);
311 float num11 = 1f - num10;
312 newColor.R = (byte)((
float)(int)color6.
R * num11 + (
float)(int)color7.
R * num10);
313 newColor.G = (byte)((
float)(int)color6.
G * num11 + (
float)(int)color7.
G * num10);
314 newColor.B = (byte)((
float)(int)color6.
B * num11 + (
float)(int)color7.
B * num10);
318 float num12 = 16200f;
319 float num13 = (float)((
Main.
time - (
double)num12) / (32400.0 - (
double)num12));
320 float num14 = 1f - num13;
321 newColor.R = (byte)((
float)(int)color7.
R * num14 + (
float)(int)color4.
R * num13);
322 newColor.G = (byte)((
float)(int)color7.
G * num14 + (
float)(int)color4.
G * num13);
323 newColor.B = (byte)((
float)(int)color7.
B * num14 + (
float)(int)color4.
B * num13);
340 color2 = ((Main.waterStyle == 2) ?
new Color(124, 118, 242) : ((Main.waterStyle == 3) ?
new Color(143, 215, 29) : ((Main.waterStyle == 4) ?
new Color(78, 193, 227) : ((Main.waterStyle == 5) ?
new Color(189, 231, 255) : ((Main.waterStyle == 6) ?
new Color(230, 219, 100) : ((Main.waterStyle == 7) ?
new Color(151, 107, 75) : ((Main.waterStyle == 8) ?
new Color(128, 128, 128) : ((Main.waterStyle == 9) ?
new Color(200, 0, 0) : ((Main.waterStyle == 10) ?
new Color(208, 80, 80) : ((Main.waterStyle == 12) ?
new Color(230, 219, 100) : ((Main.waterStyle != 13) ?
new Color(28, 216, 94) :
new Color(28, 216, 94))))))))))));
352 if (color3.
R > color2.
R)
356 if (color3.
R < color2.
R)
360 if (color3.
G > color2.
G)
364 if (color3.
G < color2.
G)
368 if (color3.
B > color2.
B)
372 if (color3.
B < color2.
B)
381 newColor =
new Color(244, 22, 175);
397 float num3 = num / num2;
398 float num4 = 1f - num3;
399 newColor.R = (byte)(75f * num3 + (
float)(int)player.
hairColor.
R * num4);
400 newColor.G = (byte)(255f * num3 + (
float)(int)player.
hairColor.
G * num4);
401 newColor.B = (byte)(200f * num3 + (
float)(int)player.
hairColor.
B * num4);
407 int x = (int)((
double)player.position.X + (double)player.
width * 0.5) / 16;
408 int y = (int)(((
double)player.position.Y + (double)player.
height * 0.25) / 16.0);
410 newColor.R = (byte)(color.
R + newColor.
R >> 1);
411 newColor.G = (byte)(color.
G + newColor.
G >> 1);
412 newColor.B = (byte)(color.
B + newColor.
B >> 1);