Files
CalamityModPublic/Effects/BasicTint.fx
T
CongratsIsTrash f0d0bbec81 Rebranded Slick Cane as Walking Cane
* Intended to be themed after Walking Cane from DST; now a Deerclops drop instead of being sold by the Bandit
* Still has its current swiping motion on normal use, stealth strikes apply an "insanity" effect that summons shadow hands on cane hits, increases movement speed by 15% while held
* No longer makes enemies drop money or makes stealth strikes scale in damage based on stored money

I'm probably going to change the insanity draw effect later because it doesn't work perfectly on some NPCs due to hardcoded drawpoint bullshit (notably Eye of Cthulhu)
2026-07-05 00:30:38 -04:00

33 lines
737 B
HLSL

sampler uImage0 : register(s0);
sampler uImage1 : register(s1);
float3 uColor;
float3 uSecondaryColor;
float uOpacity;
float uSaturation; // Saturation gets used as a "true" opacity
float uRotation;
float uTime;
float4 uSourceRect;
float2 uWorldPosition;
float uDirection;
float3 uLightSource;
float2 uImageSize0;
float2 uImageSize1;
float4 uShaderSpecificData;
float4 Recolor(float4 sampleColor : COLOR0, float2 coords : TEXCOORD0) : COLOR0
{
float4 color = tex2D(uImage0, coords);
float originalAlpha = color.a;
color.rbg = lerp(color.rbg, uColor, uOpacity);
return color * originalAlpha * uSaturation;
}
technique Technique1
{
pass TintPass
{
PixelShader = compile ps_2_0 Recolor();
}
}