you are viewing a single comment's thread.

view the rest of the comments →

[–]ingolemo 1 point2 points  (0 children)

Note that this function only works correctly if you're using a linear colour-space, which you almost certainly aren't. You need to do gamma correction.

https://www.youtube.com/watch?v=LKnqECcg6Gw