We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e63fb9 commit 616b4c4Copy full SHA for 616b4c4
cocos2d/CCLightNode.m
@@ -36,4 +36,16 @@ +(id)lightWithType:(CCLightType)type color:(CCColor *)color intensity:(float)int
36
return [[self alloc] initWithType:type color:color intensity:intensity ambientColor:ambientColor ambientIntensity:ambientIntensity];
37
}
38
39
+-(void)setIntensity:(float)intensity
40
+{
41
+ NSCAssert((intensity >= 0.0) && (intensity <= 1.0), @"Supplied intensity out of range [0..1].");
42
+ _intensity = intensity;
43
+}
44
+
45
+-(void)setAmbientIntensity:(float)intensity
46
47
48
+ _ambientIntensity = intensity;
49
50
51
@end
0 commit comments