File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 16
16
17
17
@interface CCEffectBrightness ()
18
18
19
- @property (nonatomic ) float conditionedBrightness;
19
+ @property (nonatomic ) NSNumber * conditionedBrightness;
20
20
21
21
@end
22
22
@@ -35,7 +35,7 @@ -(id)initWithBrightness:(float)brightness
35
35
if ((self = [super initWithFragmentUniforms: @[uniformBrightness] vertexUniforms: nil varying: nil ]))
36
36
{
37
37
_brightness = brightness;
38
- _conditionedBrightness = conditionBrightness (brightness);
38
+ _conditionedBrightness = [ NSNumber numberWithFloat: conditionBrightness (brightness)] ;
39
39
40
40
self.debugName = @" CCEffectBrightness" ;
41
41
}
@@ -72,7 +72,7 @@ -(void)buildRenderPasses
72
72
73
73
pass.shaderUniforms [CCShaderUniformMainTexture] = previousPassTexture;
74
74
pass.shaderUniforms [CCShaderUniformPreviousPassTexture] = previousPassTexture;
75
- pass.shaderUniforms [weakSelf.uniformTranslationTable[@" u_brightness" ]] = [ NSNumber numberWithFloat: weakSelf.conditionedBrightness] ;
75
+ pass.shaderUniforms [weakSelf.uniformTranslationTable[@" u_brightness" ]] = weakSelf.conditionedBrightness ;
76
76
} copy]];
77
77
78
78
self.renderPasses = @[pass0];
@@ -81,7 +81,7 @@ -(void)buildRenderPasses
81
81
-(void )setBrightness : (float )brightness
82
82
{
83
83
_brightness = brightness;
84
- _conditionedBrightness = conditionBrightness (brightness);
84
+ _conditionedBrightness = [ NSNumber numberWithFloat: conditionBrightness (brightness)] ;
85
85
}
86
86
87
87
@end
Original file line number Diff line number Diff line change 17
17
18
18
@interface CCEffectContrast ()
19
19
20
- @property (nonatomic ) float conditionedContrast;
20
+ @property (nonatomic ) NSNumber * conditionedContrast;
21
21
22
22
@end
23
23
@@ -36,7 +36,7 @@ -(id)initWithContrast:(float)contrast
36
36
if ((self = [super initWithFragmentUniforms: @[uniformContrast] vertexUniforms: nil varying: nil ]))
37
37
{
38
38
_contrast = contrast;
39
- _conditionedContrast = conditionContrast (contrast);
39
+ _conditionedContrast = [ NSNumber numberWithFloat: conditionContrast (contrast)] ;
40
40
41
41
self.debugName = @" CCEffectContrast" ;
42
42
}
@@ -73,7 +73,7 @@ -(void)buildRenderPasses
73
73
74
74
pass.shaderUniforms [CCShaderUniformMainTexture] = previousPassTexture;
75
75
pass.shaderUniforms [CCShaderUniformPreviousPassTexture] = previousPassTexture;
76
- pass.shaderUniforms [weakSelf.uniformTranslationTable[@" u_contrast" ]] = [ NSNumber numberWithFloat: weakSelf.conditionedContrast] ;
76
+ pass.shaderUniforms [weakSelf.uniformTranslationTable[@" u_contrast" ]] = weakSelf.conditionedContrast ;
77
77
} copy]];
78
78
79
79
self.renderPasses = @[pass0];
@@ -82,7 +82,7 @@ -(void)buildRenderPasses
82
82
-(void )setContrast : (float )contrast
83
83
{
84
84
_contrast = contrast;
85
- _conditionedContrast = conditionContrast (contrast);
85
+ _conditionedContrast = [ NSNumber numberWithFloat: conditionContrast (contrast)] ;
86
86
}
87
87
88
88
@end
You can’t perform that action at this time.
0 commit comments