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 d1f33db commit 9fdfd60Copy full SHA for 9fdfd60
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