RobustToolbox icon indicating copy to clipboard operation
RobustToolbox copied to clipboard

Make colour equality not approximate

Open ElectroJr opened this issue 1 year ago • 0 comments

Currently the colour equality methods use MathHelper.CloseToPercent() instead of actually checking equality, which directly contradicts the method's own documentation. IMO equality should just check equality. If approximate equality is desired, that should be explicitly checked.

I'm not sure why exactly it was using approximate equality before. Maybe it was trying to avoid unnecessary shader/rendering changes? In which case maybe this PR should also update those checks.

ElectroJr avatar Jun 18 '24 12:06 ElectroJr