#Color from image does for some reason does not equal the same color on an image
1 messages · Page 1 of 1 (latest)
pls
How do you know they are exactly the same value?
And are you comparing like this: someColor != otherColor?
Hmm. It might be inaccurate because of floating point errors. What if you compare each float component with Mathf.Approximately, or some other more forgiving way of checking
like Mathf.Abs(colorA.r - colorB.r) < 0.001f
yeah, try comparing them with the methods I suggested above
k. I'm also having the same issue with shadergraph
what same issue?
you are comparing colors in shader graph?
yeah
yeah how are you comparing colors in.. shader graph?
Replace color
i mean
Yeah maybe provide more screenshots, context and code, instead of having me ask questions endlessly.
Here is the shader
Not intended