Elemental Dye now uses Meld Dye instead of Galactica Singularity
Added Meld color to the dye shader too
This commit is contained in:
1 parent
e8b23a33c8
commit
934ff237bd
4 files changed
+5
-4
No files matched your search
@@ -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
|
||||
|
||||
Binary file not shown.
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Dyes
|
||||
AddIngredient(ItemID.VortexDye).
|
||||
AddIngredient(ItemID.NebulaDye).
|
||||
AddIngredient(ItemID.StardustDye).
|
||||
AddIngredient<GalacticaSingularity>().
|
||||
AddIngredient<MeldDye>().
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -231,4 +231,4 @@ TarragonDye: {
|
||||
WulfrumDye: {
|
||||
DisplayName: Wulfrum Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user