Color value changes for no reason im trying to get color from image for each pixel.
When i get color its returns different every single time thats why i cant get it
My color is on inspector is 0,0,0 alpha 1
When i get pixel its has to be return 0,0,0 but it return this
and 0.004 breaks my code.
this is the image that im getting pixel colors;
and the picture;
I heard from somebody before “float equals isn’t right way to do” i tested with mathf.
var theVal = Mathf.Approximately(color1.r, color2.r);
returns False even they are so close.