File tree Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Expand file tree Collapse file tree 4 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2600
2600
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
2601
2601
COMBINE_HIDPI_IMAGES = YES;
2602
2602
COPY_PHASE_STRIP = YES;
2603
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
2604
2603
ENABLE_NS_ASSERTIONS = NO;
2605
2604
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
2606
2605
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
Original file line number Diff line number Diff line change 1065
1065
5B89B01819462F5900CD2A5E /* Release */ = {
1066
1066
isa = XCBuildConfiguration;
1067
1067
buildSettings = {
1068
- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
1069
1068
GCC_ENABLE_OBJC_EXCEPTIONS = YES;
1070
1069
MACOSX_DEPLOYMENT_TARGET = "$(inherited)";
1071
1070
OTHER_LDFLAGS = "";
Original file line number Diff line number Diff line change 3
3
package =" org.cocos2d.demo" >
4
4
<uses-feature android : glEsVersion =" 0x00020000" android : required =" true" />
5
5
<uses-sdk android : targetSdkVersion =" 14" android : minSdkVersion =" 9" ></uses-sdk >
6
+ <uses-permission android : name =" android.permission.INTERNET" ></uses-permission >
6
7
<application
7
8
android : allowBackup =" true"
8
9
android : label =" Cocos2d"
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ -(void)buildFragmentFunctions
54
54
CCEffectFunctionInput *input = [[CCEffectFunctionInput alloc ] initWithType: @" vec4" name: @" inputValue" initialSnippet: CCEffectDefaultInitialInputSnippet snippet: CCEffectDefaultInputSnippet];
55
55
56
56
NSString * effectBody = CC_GLSL (
57
- return vec4 (((inputValue.rgb - vec3 (0.5 )) * vec3 (u_contrast) + vec3 (0.5 )), inputValue.a );
57
+ vec3 offset = vec3 (0.5 ) * inputValue.a ;
58
+ return vec4 (((inputValue.rgb - offset) * vec3 (u_contrast) + offset), inputValue.a );
58
59
);
59
60
60
61
CCEffectFunction* fragmentFunction = [[CCEffectFunction alloc ] initWithName: @" contrastEffect" body: effectBody inputs: @[input] returnType: @" vec4" ];
You can’t perform that action at this time.
0 commit comments