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.
2 parents 2ec3557 + 9fdfd60 commit ad777f2Copy full SHA for ad777f2
src/webgl/shaders/phong.frag
@@ -49,7 +49,7 @@ void main(void) {
49
inputs.color = isTexture
50
? TEXTURE(uSampler, vTexCoord) * uTint/255.
51
: vColor;
52
- if (isTexture) {
+ if (isTexture && inputs.color.a > 0.0) {
53
// Textures come in with premultiplied alpha. Temporarily unpremultiply it
54
// so hooks users don't have to think about premultiplied alpha.
55
inputs.color.rgb /= inputs.color.a;
0 commit comments