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 8d03f01 commit a33f8d2Copy full SHA for a33f8d2
cocos2d/CCEffectLighting.m
@@ -106,7 +106,7 @@ +(NSMutableArray *)buildFragmentFunctionsWithLights:(NSArray*)lights andSpecular
106
vec4 normalMap = texture2D(cc_NormalMapTexture, cc_FragTexCoord2);
107
vec3 tangentSpaceNormal = normalize(normalMap.xyz * 2.0 - 1.0);
108
109
- if (normalMap.a == 0.0)
+ if ((inputValue.a * normalMap.a) == 0.0)
110
{
111
return vec4(0,0,0,0);
112
}
0 commit comments