Merge branch 'BlisBomb' of https://github.com/CalamityTeam/CalamityMod into BlisBomb
No files matched your search
@@ -0,0 +1,44 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
// pixelate the effect
|
||||
float2 pixelationFactor = 2 / uImageSize0;
|
||||
float2 noiseCoords = floor(coords / pixelationFactor) * pixelationFactor;
|
||||
|
||||
float3 greene = uSecondaryColor;
|
||||
|
||||
float2 framedCoords = (noiseCoords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * float2(0.7, 0.025);
|
||||
float2 modifiedCoords = framedCoords;
|
||||
modifiedCoords.y -= uTime * 0.025; // Cause the effect to travel downwards
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords));
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
float3 finalColor = lerp(uSecondaryColor, float3(noiseColor.r, noiseColor.g, noiseColor.b), noiseColor); // Applies green to the noise
|
||||
|
||||
return float4(finalColor, 1) * color * sampleColor * float4(greene.rgb, 1);
|
||||
}
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float time = (sin(uTime) * 0.5 + 0.25);
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
float4 blue = float4(uColor, 1);
|
||||
float4 purple = float4(181 / 255.0, 45 / 255.0, 196 / 255.0, 1);
|
||||
|
||||
|
||||
float2 framedCoords = (coords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * 0.4;
|
||||
float2 modifiedCoords = framedCoords;
|
||||
modifiedCoords.y += uTime * 0.02; // Cause the effect to travel upwards
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords));
|
||||
|
||||
float4 lerped = lerp(blue, purple, noiseColor + time); // shift between blue and purple according to the noise
|
||||
float4 dotted = dot(color.rgb, 0.5); // grayscale
|
||||
|
||||
return float4(dotted * lerped.rgb, color.a) * sampleColor;
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float2 framedCoords = (coords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw ;
|
||||
float2 modifiedCoords = framedCoords;
|
||||
modifiedCoords += uTime * 0.1; // Cause the effect to travel upwards
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords));
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
float3 finalColor = lerp(uSecondaryColor, uColor, noiseColor); // Applies green to the noise
|
||||
|
||||
return float4(finalColor, 1) * color * sampleColor;
|
||||
}
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,77 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float2 Pixelate(float2 uv)
|
||||
{
|
||||
int multi = sin(uTime * 0.1) * 200 + 200;
|
||||
int2 var = int2(uv.x * multi, uv.y * multi);
|
||||
//var = round(var);
|
||||
return float2((float) var.x / multi, (float) var.y / multi);
|
||||
}
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
// pixelate the coordinates
|
||||
float2 pixelationFactor = 2 / uImageSize0;
|
||||
float2 noiseCoords = floor(coords / pixelationFactor) * pixelationFactor;
|
||||
|
||||
float time = sin(uTime) * 0.5;
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
float4 black = float4(0, 0, 0, 1);
|
||||
float4 blue = float4(89 / 255.0, 70 / 255.0, 111 / 255.0, 1);
|
||||
|
||||
// coords scale in size and position over time
|
||||
float2 framedCoords = (noiseCoords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * (0.4 + time * 0.05);
|
||||
float2 modifiedCoords = framedCoords + float2(uTime * 0.02, 1 + sin(uTime) * 0.02);
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords)) * 0.5; // black noise
|
||||
|
||||
float4 noiseColor2 = tex2D(uImage1, frac(modifiedCoords)) * 0.25; // green noise
|
||||
|
||||
if (color.a == 0)
|
||||
return 0;
|
||||
|
||||
// outlines are black
|
||||
if (any(color))
|
||||
{
|
||||
float2 pixelSize = 1 / uImageSize0;
|
||||
if (!any(tex2D(uImage0, coords + float2(pixelSize.x * 2, 0))) ||
|
||||
!any(tex2D(uImage0, coords + float2(-pixelSize.x * 2, 0))) ||
|
||||
!any(tex2D(uImage0, coords + float2(0, pixelSize.y * 2))) ||
|
||||
!any(tex2D(uImage0, coords + float2(0, -pixelSize.y * 2))))
|
||||
{
|
||||
return color * sampleColor * black;
|
||||
}
|
||||
}
|
||||
|
||||
float4 lerped = lerp(black, float4(uColor.rgb, 1), noiseColor); // shift between brown and orange according to the noise
|
||||
float4 dotted = dot(color.rgb, 0.5); // grayscale
|
||||
float3 blackandblue = (lerped.rgb + blue.rgb) / 4; // blue and shifting black combined
|
||||
float4 greentoblack = float4(lerp(blackandblue * dotted.rgb, uSecondaryColor.rgb, noiseColor2.rgb), color.a); // shift between the blue black mix and green
|
||||
|
||||
return float4(greentoblack.rgb, color.a) * sampleColor;
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
// pixelate the effect
|
||||
float2 pixelationFactor = 2 / uImageSize0;
|
||||
float2 noiseCoords = floor(coords / pixelationFactor) * pixelationFactor;
|
||||
|
||||
float3 greene = float3(0 / 255.0, 237 / 255.0, 28 / 255.0);
|
||||
|
||||
float2 framedCoords = (noiseCoords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * 0.2;
|
||||
float2 modifiedCoords = framedCoords;
|
||||
modifiedCoords.y += uTime * 0.75; // Cause the effect to travel upwards
|
||||
|
||||
float2 framedCoords2 = (noiseCoords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * 0.3;
|
||||
float2 modifiedCoords2 = framedCoords2;
|
||||
modifiedCoords2.y -= uTime * 0.5; // Cause the effect to travel upwards
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords));
|
||||
float4 noiseColor2 = tex2D(uImage1, frac(modifiedCoords2));
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
float3 finalColor = lerp(uColor, uSecondaryColor, noiseColor * 2); // Applies light blue to the noise
|
||||
float3 finalColor2 = lerp(uColor, uSecondaryColor, noiseColor2 * 2); // Applies light blue to the noise
|
||||
|
||||
return float4((finalColor + finalColor2) / 2.0, 1) * color * sampleColor;
|
||||
}
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float BlendMode_ColorBurn(float base, float blend)
|
||||
{
|
||||
if (base > 1.0)
|
||||
return 1.0;
|
||||
else if (blend <= 0.0)
|
||||
return 0.0;
|
||||
else
|
||||
return 1.0 - min(1.0, (1.0 - base) / blend);
|
||||
}
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float2 framedCoords = (coords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * 0.1;
|
||||
float2 modifiedCoords = framedCoords;
|
||||
modifiedCoords.y += uTime * 0.02; // Cause the effect to travel upwards
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords));
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
return float4(BlendMode_ColorBurn(color.r, uColor.r), BlendMode_ColorBurn(color.g, uColor.g), BlendMode_ColorBurn(color.b, uColor.b), color.a) * noiseColor * sampleColor;
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
float4 ret = color * sampleColor * float4(uColor, 1);
|
||||
if (any(color))
|
||||
{
|
||||
float2 pixelSize = 1 / uImageSize0;
|
||||
// Only the top 2 pixels before air are colored yellow
|
||||
if (!any(tex2D(uImage0, coords + float2(0, -pixelSize.y * 4))) ||
|
||||
!any(tex2D(uImage0, coords + float2(0, -pixelSize.y * 2))))
|
||||
{
|
||||
ret = color * sampleColor * float4(uColor.rgb, 1);
|
||||
}
|
||||
else
|
||||
ret = color * sampleColor * float4(uSecondaryColor.rgb, 1);
|
||||
return ret;
|
||||
}
|
||||
return float4(0, 0, 0, 0);
|
||||
}
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
float a = color.a * sampleColor.a;
|
||||
if (any(color))
|
||||
{
|
||||
float2 pixelSize = 1 / uImageSize0;
|
||||
if (!any(tex2D(uImage0, coords + float2(pixelSize.x * 2, 0))) ||
|
||||
!any(tex2D(uImage0, coords + float2(-pixelSize.x * 2, 0))) ||
|
||||
!any(tex2D(uImage0, coords + float2(0, pixelSize.y * 2))) ||
|
||||
!any(tex2D(uImage0, coords + float2(0, -pixelSize.y * 2))))
|
||||
{
|
||||
return color * sampleColor;
|
||||
}
|
||||
}
|
||||
|
||||
if (((color.r + color.g + color.b) / 3) > 0.3)
|
||||
return float4(uColor, 1) + color * sampleColor;
|
||||
else
|
||||
return color * sampleColor;
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float time = (sin(uTime) * 0.5 + 0.25);
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
float4 brown = float4(uColor, 1);
|
||||
float4 orange = float4(uSecondaryColor, 1);
|
||||
|
||||
float2 framedCoords = (coords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * 0.75;
|
||||
float2 modifiedCoords = framedCoords;
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords));
|
||||
|
||||
float4 lerped = lerp(brown, orange, noiseColor + time); // shift between brown and orange according to the noise
|
||||
float4 dotted = dot(color.rgb, 0.5); // grayscale
|
||||
|
||||
return float4(dotted * lerped.rgb, color.a) * sampleColor;
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,64 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float betterSaturate(float var)
|
||||
{
|
||||
if (var > 1)
|
||||
return 1;
|
||||
else if (var < 0)
|
||||
return 0;
|
||||
else
|
||||
return var;
|
||||
}
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float time = (sin(uTime * 2) * 0.5);
|
||||
float timeSaturated = betterSaturate(time);
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
float4 brown = float4(uColor, 1);
|
||||
float4 orange = float4(uSecondaryColor, 1);
|
||||
float4 blue = float4(85 / 255.0, 140 / 255.0, 194 / 245.0, 1);
|
||||
|
||||
|
||||
float2 framedCoords = (coords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * 0.75;
|
||||
float2 modifiedCoords = framedCoords + float2(uTime * 0.02, 0);
|
||||
|
||||
float2 framedCoords2 = (coords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * 0.5;
|
||||
float2 modifiedCoords2 = framedCoords2 + float2(uTime * 0.02 + 1, 1);
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords));
|
||||
float4 noiseColor2 = tex2D(uImage1, frac(modifiedCoords2));
|
||||
|
||||
float a = color.a * sampleColor.a;
|
||||
|
||||
float4 lerped = lerp(brown, orange, noiseColor - 0.5); // shift between brown and orange according to the noise
|
||||
float4 finallerp = lerp(lerped, blue, noiseColor2 - 0.5); // shift between blue and brorange according to the other noise
|
||||
float4 dotted = dot(color.rgb, 0.5); // grayscale
|
||||
|
||||
return float4(dotted * finallerp.rgb, color.a) * sampleColor;
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
float4 ret = color * sampleColor * float4(uColor, 1);
|
||||
if (any(color))
|
||||
{
|
||||
float2 pixelSize = 1 / uImageSize0;
|
||||
// Only the top 2 pixels before air are colored yellow
|
||||
if (!any(tex2D(uImage0, coords + float2(0, -pixelSize.y * 4))) ||
|
||||
!any(tex2D(uImage0, coords + float2(0, -pixelSize.y * 2))))
|
||||
{
|
||||
ret = color * sampleColor * float4(uSecondaryColor.rgb, 1);
|
||||
}
|
||||
else
|
||||
ret = color * sampleColor * float4(uColor.rgb, 1);
|
||||
return lerp(ret, float4(uSecondaryColor.rgb, ret.a), sin(uTime * 3) * 0.1);
|
||||
}
|
||||
return float4(0, 0, 0, 0);
|
||||
}
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float2 framedCoords = (coords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * float2(0.7, 0.05);
|
||||
float2 modifiedCoords = framedCoords;
|
||||
//modifiedCoords.y -= uTime * 0.1; // Cause the effect to travel upwards
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords));
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
float3 finalColor = lerp(uSecondaryColor, float3(noiseColor.r, noiseColor.g, noiseColor.b), 0.5); // Applies green to the noise
|
||||
|
||||
return float4(finalColor, 1) * color * 1.8 * sampleColor * float4(uColor.rgb, 1);
|
||||
}
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
sampler uImage0 : register(s0);
|
||||
sampler uImage1 : register(s1);
|
||||
float3 uColor;
|
||||
float3 uSecondaryColor;
|
||||
float uOpacity;
|
||||
float uSaturation;
|
||||
float uRotation;
|
||||
float uTime;
|
||||
float4 uSourceRect;
|
||||
float2 uWorldPosition;
|
||||
float uDirection;
|
||||
float3 uLightSource;
|
||||
float2 uImageSize0;
|
||||
float2 uImageSize1;
|
||||
float2 uTargetPosition;
|
||||
float4 uLegacyArmorSourceRect;
|
||||
float2 uLegacyArmorSheetSize;
|
||||
|
||||
float4 PixelShaderFunction(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
|
||||
{
|
||||
float2 framedCoords = (coords * uImageSize0 - uSourceRect.xy) / uSourceRect.zw * 0.5;
|
||||
float2 modifiedCoords = framedCoords;
|
||||
modifiedCoords.y += uTime * 0.05; // Cause the effect to travel upwards
|
||||
|
||||
float4 noiseColor = tex2D(uImage1, frac(modifiedCoords));
|
||||
float4 color = tex2D(uImage0, coords);
|
||||
|
||||
float3 finalColor = lerp(uColor, float3(noiseColor.r, noiseColor.g, noiseColor.b), 0.5); // Applies green to the noise
|
||||
|
||||
return float4(finalColor, 1) * color * 1.8 * sampleColor;
|
||||
}
|
||||
technique Technique1
|
||||
{
|
||||
pass DyePass
|
||||
{
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 157 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 230 KiB |
|
After Width: | Height: | Size: 219 KiB |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class AcidRainDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/AcidRainDyeShader"), "DyePass").
|
||||
UseColor(new Color(20, 117, 70)).UseSecondaryColor(new Color(208, 254, 39)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Bark"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Green;
|
||||
Item.value = Item.sellPrice(0, 0, 25, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<SulphuricScale>().
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 437 B |
|
Before Width: | Height: | Size: 453 B After Width: | Height: | Size: 475 B |
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 477 B |
|
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 431 B |
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 339 B |
|
Before Width: | Height: | Size: 417 B After Width: | Height: | Size: 311 B |
|
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 427 B |
|
Before Width: | Height: | Size: 420 B After Width: | Height: | Size: 498 B |
|
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 344 B |
@@ -9,6 +9,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
// Despite what it may seem with its name, this dye is intended to be based on Cryogen, not the Cryonic set
|
||||
public class CryonicDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/CryonicDyeShader"), "DyePass").
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class DaedalusDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/DaedalusDyeShader"), "DyePass").
|
||||
UseColor(new Color(59, 183, 255)).UseSecondaryColor(new Color(181, 45, 196)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/VoronoiShapes3"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.value = Item.sellPrice(silver: 75);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<CryonicOre>(4).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 439 B |
|
Before Width: | Height: | Size: 384 B After Width: | Height: | Size: 349 B |
|
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 407 B |
|
Before Width: | Height: | Size: 357 B After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 506 B After Width: | Height: | Size: 398 B |
|
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 394 B |
|
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 500 B |
|
Before Width: | Height: | Size: 711 B After Width: | Height: | Size: 365 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class LivingShardDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/LivingShardDyeShader"), "DyePass").
|
||||
UseColor(new Color(118, 230, 29)).UseSecondaryColor(new Color(102, 209, 255)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/OrnatePattern"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Lime;
|
||||
Item.value = Item.sellPrice(0, 1, 0, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<LivingShard>().
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 489 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class MeldDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/MeldDyeShader"), "DyePass").
|
||||
UseColor(new Color(28, 135, 84)).UseSecondaryColor(new Color(52, 235, 149)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Veins"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Cyan;
|
||||
Item.value = Item.sellPrice(0, 2, 50, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
// Vanilla frag dye amount
|
||||
CreateRecipe(1).
|
||||
AddIngredient(ItemID.BottledWater, 1).
|
||||
AddIngredient<MeldBlob>(10).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 420 B |
@@ -0,0 +1,41 @@
|
||||
using CalamityMod.Items.TreasureBags.MiscGrabBags;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class NecromanticDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/NecromanticDyeShader"), "DyePass").
|
||||
UseColor(new Color(71, 23, 26)).UseSecondaryColor(new Color(10, 198, 255)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/SharpNoise"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.value = Item.sellPrice(0, 2, 0, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<FleshyGeode>().
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
CreateRecipe(3).
|
||||
AddIngredient(ItemID.BottledWater, 3).
|
||||
AddIngredient<NecromanticGeode>().
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 437 B |
|
Before Width: | Height: | Size: 399 B After Width: | Height: | Size: 431 B |
|
Before Width: | Height: | Size: 351 B After Width: | Height: | Size: 308 B |
|
Before Width: | Height: | Size: 393 B After Width: | Height: | Size: 340 B |
|
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 298 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.TreasureBags.MiscGrabBags;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class PlagueGooDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/PlagueGooDyeShader"), "DyePass").
|
||||
UseColor(new Color(26, 288, 0)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Neurons"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.value = Item.sellPrice(0, 2, 0, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<PlagueCellCanister>().
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 412 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class PlaguePlateDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/PlaguePlateDyeShader"), "DyePass").
|
||||
UseColor(new Color(0, 54, 25)).UseSecondaryColor(new Color(0, 38, 18));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Cyan;
|
||||
Item.value = Item.sellPrice(0, 2, 0, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<InfectedArmorPlating>().
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 423 B |
@@ -0,0 +1,37 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.FurnitureProfaned;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using ReLogic.Content;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ProfanedCrystalDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/ProfanedCrystalDyeShader"), "DyePass").
|
||||
UseColor(new Color(255, 0, 89));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
Item.value = Item.sellPrice(gold: 1, silver: 50);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(3).
|
||||
AddIngredient(ItemID.BottledWater, 3).
|
||||
AddIngredient<ProfanedCrystal>(15).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 392 B |
|
Before Width: | Height: | Size: 378 B After Width: | Height: | Size: 325 B |
|
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 520 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureProfaned;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ProfanedRockDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/ProfanedRockDyeShader"), "DyePass").
|
||||
UseColor(new Color(79, 16, 16)).UseSecondaryColor(new Color(173, 116, 0)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Veins"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
Item.value = Item.sellPrice(gold: 1, silver: 50);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(3).
|
||||
AddIngredient(ItemID.BottledWater, 3).
|
||||
AddIngredient<ProfanedRock>(15).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 425 B |
|
Before Width: | Height: | Size: 414 B After Width: | Height: | Size: 364 B |
@@ -0,0 +1,38 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Items.TreasureBags.MiscGrabBags;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ScoriaDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/ScoriaDyeShader"), "DyePass").
|
||||
UseColor(new Color(76, 77, 86)).UseSecondaryColor(new Color(224, 108, 29)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Veins"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.value = Item.sellPrice(0, 2, 0, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<ScoriaOre>(4).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 433 B |
|
Before Width: | Height: | Size: 390 B After Width: | Height: | Size: 433 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Items.Placeables.FurnitureSilva;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class SilvaDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/SilvaDyeShader"), "DyePass").
|
||||
UseColor(new Color(103, 206, 103)).UseSecondaryColor(new Color(255, 255, 158));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
Item.value = Item.sellPrice(0, 1, 50, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(3).
|
||||
AddIngredient(ItemID.BottledWater, 3).
|
||||
AddIngredient<SilvaCrystal>(15).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 406 B |
|
Before Width: | Height: | Size: 411 B After Width: | Height: | Size: 344 B |
|
Before Width: | Height: | Size: 429 B After Width: | Height: | Size: 356 B |
@@ -0,0 +1,35 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Items.TreasureBags.MiscGrabBags;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class TarragonDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/TarragonDyeShader"), "DyePass").
|
||||
UseColor(new Color(20, 117, 70)).UseSecondaryColor(new Color(28, 255, 55)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/Bark"));
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = RarityType<Turquoise>();
|
||||
Item.value = Item.sellPrice(0, 2, 0, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(3).
|
||||
AddIngredient(ItemID.BottledWater, 3).
|
||||
AddIngredient<UelibloomOre>(4).
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 401 B |
@@ -0,0 +1,36 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class WulfrumDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request<Effect>("Effects/Dyes/WulfrumDyeShader"), "DyePass").
|
||||
UseColor(new Color(89, 247, 166)).UseSecondaryColor(new Color(102, 242, 255)).UseImage(Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/TechyNoise"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
Item.ResearchUnlockCount = 3;
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.value = Item.sellPrice(0, 0, 10, 0);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe(2).
|
||||
AddIngredient(ItemID.BottledWater, 2).
|
||||
AddIngredient<WulfrumMetalScrap>().
|
||||
AddTile(TileID.DyeVat).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 429 B |
@@ -1,3 +1,8 @@
|
||||
AcidRainDye: {
|
||||
DisplayName: Acid Rain Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
AerialiteDye: {
|
||||
DisplayName: Aerialite Dye
|
||||
Tooltip: ""
|
||||
@@ -68,6 +73,11 @@ CryonicDye: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DaedalusDye: {
|
||||
DisplayName: Daedalus Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
DefiledFlameDye: {
|
||||
DisplayName: Defiled Flame Dye
|
||||
Tooltip: ""
|
||||
@@ -113,6 +123,21 @@ WingTimeHairDye: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
LivingShardDye: {
|
||||
DisplayName: Living Shard Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
MeldDye: {
|
||||
DisplayName: Meld Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
NecromanticDye: {
|
||||
DisplayName: Necromantic Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
NecroplasmicDye: {
|
||||
DisplayName: Necroplasmic Dye
|
||||
Tooltip: ""
|
||||
@@ -133,6 +158,21 @@ PinkStatigelDye: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
PlagueGooDye: {
|
||||
DisplayName: Plague Goo Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
PlaguePlateDye: {
|
||||
DisplayName: Plague Plate Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ProfanedCrystalDye: {
|
||||
DisplayName: Profaned Crystal Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ProfanedFlameDye: {
|
||||
DisplayName: Profaned Flame Dye
|
||||
Tooltip: ""
|
||||
@@ -143,16 +183,31 @@ ProfanedMoonlightDye: {
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ProfanedRockDye: {
|
||||
DisplayName: Profaned Rock Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ReaverDye: {
|
||||
DisplayName: Reaver Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ScoriaDye: {
|
||||
DisplayName: Scoria Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ShadowspecDye: {
|
||||
DisplayName: Shadowspec Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
SilvaDye: {
|
||||
DisplayName: Silva Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
SlimeGodDye: {
|
||||
DisplayName: Slime God Dye
|
||||
Tooltip: ""
|
||||
@@ -167,3 +222,13 @@ SwirlingCosmicFlameDye: {
|
||||
DisplayName: Swirling Cosmic Flame Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
TarragonDye: {
|
||||
DisplayName: Tarragon Dye
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
WulfrumDye: {
|
||||
DisplayName: Wulfrum Dye
|
||||
Tooltip: ""
|
||||
}
|
||||