-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converts colors to non-linear sRGB format and then mixes them, color conversion is based on https://www.w3.org/Graphics/Color/sRGB.html. The formulas have been adjusted to be faster, which results in color mixing still not being 100% correct. Without a direct comparison, it is now very hard to see a difference. * Replaced color blending with srgb blending, currently 10 times slower Co-authored-by: booky10 <boooky10@gmail.com> * Improve performance of color blending by a lot Slightly decreases precision, but no one will notice --------- Co-authored-by: booky10 <boooky10@gmail.com>
- Loading branch information
1 parent
9cfdefe
commit ecfaa87
Showing
1 changed file
with
42 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters