unbreak colored dash particles

This commit is contained in:
micycle 2023-05-21 02:15:38 -04:00 committed by yosh
parent 6e956b3808
commit 8643ea14af
1 changed files with 0 additions and 5 deletions

View File

@ -64,11 +64,6 @@ float4 ps_main(float4 pos: SV_Position, float4 sprite_color: COLOR0, float2 uv:
float4 tex_rgb = SAMPLE_TEXTURE(sprite, uv);
float4 tex_hsv = rgb2hsv(tex_rgb);
// recolor the sprite color if it is normal
if (distance(sprite_color, recolor1_rgb_from) < recolor1_threshold) {
sprite_color = recolor1_rgb_to;
}
// replace recolor1_rgb_from with recolor1_rgb_to if in threshold
if (distance(tex_rgb, recolor1_rgb_from) < recolor1_threshold) {
return recolor1_rgb_to * sprite_color;