unbreak colored dash particles
This commit is contained in:
parent
6e956b3808
commit
8643ea14af
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue