#Replace Color node not working

1 messages · Page 1 of 1 (latest)

viscid axle
#

So I've been using Unity 2021 for a while now and finally decided to switch to Unity 6.
I tried using a shader I made in Unity 2021 which just replaces the grays from an image with a given set of colors.

You can see in the attached images that in Unity 2021 the shader works, but in Unity 6 it doesn't. I've noticed that changing the range to 0.0001 solves the problem, but I don't know why or if that's normal.

The sprite is pixel art, so no gradients, just clear pixels.

I've also noticed a new option on my materials "Enable GPU Instancing" and I'm not sure what it does or if it should be turned on.

Thanks for help in advance.

#

By the way. That 0.0001 is not even consistent. To some nodes I need to set it to something higher to work.

rigid inlet
#

Could be differences in the format or compression settings the texture was imported with

viscid axle
#

The import settings are these, and they are the same as in my Unity 2021 project.

#

(I actually copied the assets - and their meta files - directly in my new project, not sure if that's an issue)