cocos2d/cocos2d-objc

CCSprite initWithTexture - A8ColorShader not assigned

heiko-henrich opened this issue · 1 comments

In order to get the shader for 8Bit textures working,
it has to be assigned to self.shader in the initializer:

self.shader = texture.pixelFormat == CCTexturePixelFormat_A8 ? [CCShader positionTextureA8ColorShader] : [CCShader positionTextureColorShader];

I know the 8-Bit-Shader will get obsolete, but maybe it is nice to get it working for the final version of 3.4.

When the bug is fixed, than the color property is used to paint the monochrome 8-bit texture. Otherwise 8-Bit textures are always black.