From 934ff237bd564fb85846195adf6ffdd66bf253bc Mon Sep 17 00:00:00 2001 From: CongratsIsTrash <1q2w3e4dasd@gmail.com> Date: Tue, 5 Nov 2024 13:04:15 -0500 Subject: [PATCH] Elemental Dye now uses Meld Dye instead of Galactica Singularity Added Meld color to the dye shader too --- Effects/Dyes/ElementalDyeShader.fx | 5 +++-- Effects/Dyes/ElementalDyeShader.xnb | Bin 3160 -> 3224 bytes Items/Dyes/ElementalDye.cs | 2 +- .../en-US/Mods.CalamityMod.Items.Dyes.hjson | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Effects/Dyes/ElementalDyeShader.fx b/Effects/Dyes/ElementalDyeShader.fx index 1bce69bfa1..ed2145be90 100644 --- a/Effects/Dyes/ElementalDyeShader.fx +++ b/Effects/Dyes/ElementalDyeShader.fx @@ -28,18 +28,19 @@ float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD float time = (sin(uTime + framedCoords.x * sin(uTime + 3.141 * framedCoords.x) + 1.5707 * framedCoords.y) * 0.5 + 0.5) * 6; float timeFloored = floor(time); - float3 colors[6] = + float3 colors[7] = { float3(241, 149, 49), // Solar float3(88, 201, 169), // Vortex float3(102, 200, 249), // Stardust float3(226, 76, 239) * 0.7, // Nebula float3(102, 200, 249), // Stardust + float3(19, 24, 27), // Meld float3(88, 201, 169) // Vortex }; // Use a multi-lerp to fade between colors and then base them on a trig-based time step. - color.rgb *= lerp(colors[timeFloored] / 255.0, colors[(timeFloored + 1) % 6] / 255.0, time / 6) * 1.6; + color.rgb *= lerp(colors[timeFloored] / 255.0, colors[(timeFloored + 1) % 7] / 255.0, time / 6) * 1.6; return color * sampleColor; } technique Technique1 diff --git a/Effects/Dyes/ElementalDyeShader.xnb b/Effects/Dyes/ElementalDyeShader.xnb index a058d35d1e144354d2b5893bade6b3bef7b59edc..d612921ea94b6aa533478162eb43bb60232cc64a 100644 GIT binary patch delta 437 zcmZ9Gu}i~16vn?xOw;BX3re*P4jnpl6h~=Nq=Q`qheBun0>weZC4WE$o?^!DoVw#K}D{e-=D&o&f>-i&&q zu#4VE6Ut(xIc2Q@S_TClfJ66+a!A=uxGs4;sVRJlP@HDV#UszFU58<9G#u7IC+RiB zWp=i~Y2x!^(>^>X+IP1ND^>Hvp9TY~|FB|zf9=>QH;H#U9qX~*w1e|1@t1n9lv`)4 zAa;$)633p;5&Lam0+@6dTCPb9h@3wbxcM>D0F{AJUo7s8dDW!+W|XU`p3W!;+}yuC z3S!q33%uG&{(+MrU7>vn3bNJ_Ngpb7>4Q_9dSj9WYU6vn@kn#A-5MM^{$AxM!r3GRuApe}+#A&ZMIpyD8cLmnWYa#38wP;@XZ zDSZH?C|Ic=PKs+@KY|B*&_o(~ zzyL7h6Y7Cr1|+@;lnBHuVxNW;K(). + AddIngredient(). AddTile(TileID.DyeVat). Register(); } diff --git a/Localization/en-US/Mods.CalamityMod.Items.Dyes.hjson b/Localization/en-US/Mods.CalamityMod.Items.Dyes.hjson index 1281da4c90..5ccba37d5d 100644 --- a/Localization/en-US/Mods.CalamityMod.Items.Dyes.hjson +++ b/Localization/en-US/Mods.CalamityMod.Items.Dyes.hjson @@ -231,4 +231,4 @@ TarragonDye: { WulfrumDye: { DisplayName: Wulfrum Dye Tooltip: "" -} \ No newline at end of file +}