Skip to content

Commit f7395f5

Browse files
author
Thayer J Andrews
committed
CCEffects - Don't apply name mangling to the texture coordinate center and extent uniforms
They're CCEffect built-ins (not effect implementation specific) so they are shared between stacked effects and should not be mangled.
1 parent a6f7bf9 commit f7395f5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

cocos2d/CCEffect.m

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,13 @@ + (NSArray *)defaultEffectVertexUniforms
298298

299299
+ (NSSet *)defaultEffectFragmentUniformNames
300300
{
301-
return [[NSSet alloc] initWithArray:@[CCShaderUniformPreviousPassTexture]];
301+
return [[NSSet alloc] initWithArray:@[
302+
CCShaderUniformPreviousPassTexture,
303+
CCShaderUniformTexCoord1Center,
304+
CCShaderUniformTexCoord1Extents,
305+
CCShaderUniformTexCoord2Center,
306+
CCShaderUniformTexCoord2Extents
307+
]];
302308
}
303309

304310
+ (NSSet *)defaultEffectVertexUniformNames

0 commit comments

Comments
 (0)