[cocos2d/cocos2d-swift] 5553f0: CCEffectContrast - Fix for negative contrast value...

0 views
Skip to first unread message

GitHub

unread,
Sep 23, 2014, 4:17:56 PM9/23/14
to cocos2d-iph...@googlegroups.com
Branch: refs/heads/develop
Home: https://github.com/cocos2d/cocos2d-swift
Commit: 5553f069d8541911b68eb0fa188fd87c902e585e
https://github.com/cocos2d/cocos2d-swift/commit/5553f069d8541911b68eb0fa188fd87c902e585e
Author: Thayer J Andrews <tha...@apportable.com>
Date: 2014-09-23 (Tue, 23 Sep 2014)

Changed paths:
M cocos2d/CCEffectContrast.m

Log Message:
-----------
CCEffectContrast - Fix for negative contrast values

Multiply the constant offset value, 0.5, by the input alpha value to make sure it is
also in premultiplied alpha space as the RGB values are. Without this correction,
input RGB values of (0,0,0) can become non-(0,0,0) when the contrast adjustment
is less than 1.0.


Commit: cc2300b29a671cad4a2fd2d8c1a50b2107c00504
https://github.com/cocos2d/cocos2d-swift/commit/cc2300b29a671cad4a2fd2d8c1a50b2107c00504
Author: Scott Lembcke <slem...@gmail.com>
Date: 2014-09-23 (Tue, 23 Sep 2014)

Changed paths:
M cocos2d/CCEffectContrast.m

Log Message:
-----------
Merge pull request #991 from thayerandrews/develop

CCEffectContrast - Fix for negative contrast values


Compare: https://github.com/cocos2d/cocos2d-swift/compare/b4fd3f52262f...cc2300b29a67
Reply all
Reply to author
Forward
0 new messages