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 26002600 CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
26012601 COMBINE_HIDPI_IMAGES = YES;
26022602 COPY_PHASE_STRIP = YES;
2603- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
26042603 ENABLE_NS_ASSERTIONS = NO;
26052604 GCC_ENABLE_OBJC_EXCEPTIONS = YES;
26062605 GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
Original file line number Diff line number Diff line change 10651065 5B89B01819462F5900CD2A5E /* Release */ = {
10661066 isa = XCBuildConfiguration;
10671067 buildSettings = {
1068- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
10691068 GCC_ENABLE_OBJC_EXCEPTIONS = YES;
10701069 MACOSX_DEPLOYMENT_TARGET = "$(inherited)";
10711070 OTHER_LDFLAGS = "";
Original file line number Diff line number Diff line change 33 package =" org.cocos2d.demo" >
44 <uses-feature android : glEsVersion =" 0x00020000" android : required =" true" />
55 <uses-sdk android : targetSdkVersion =" 14" android : minSdkVersion =" 9" ></uses-sdk >
6+ <uses-permission android : name =" android.permission.INTERNET" ></uses-permission >
67 <application
78 android : allowBackup =" true"
89 android : label =" Cocos2d"
Original file line number Diff line number Diff line change @@ -54,7 +54,8 @@ -(void)buildFragmentFunctions
5454 CCEffectFunctionInput *input = [[CCEffectFunctionInput alloc ] initWithType: @" vec4" name: @" inputValue" initialSnippet: CCEffectDefaultInitialInputSnippet snippet: CCEffectDefaultInputSnippet];
5555
5656 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 );
5859 );
5960
6061 CCEffectFunction* fragmentFunction = [[CCEffectFunction alloc ] initWithName: @" contrastEffect" body: effectBody inputs: @[input] returnType: @" vec4" ];
You can’t perform that action at this time.
0 commit comments