Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
spine-ts: fix dark in both pma and non-pma #993
According to my calculations, both modes were wrong. I do not know about other runtimes.
To make shader work in both modes, I've added v_dark.a = 1.0 in PMA, 0.0 in non-PMA.
Its interesting that the same thing can be reproduced with http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/geom/ColorTransform.html , however, it would not allow to invert the colors. At the same time, dark-light wont allow to decrease the specific color.