Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make colour equality not approximate #5253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ElectroJr
Copy link
Contributor

@ElectroJr ElectroJr commented Jun 18, 2024

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 ElectroJr marked this pull request as ready for review June 23, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant