Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d091207

Browse files
airnezDesplandis
authored andcommitted
fix(PointsMaterial.js): Allow transparency when any class is invisible
1 parent ad67a6b commit d091207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Renderer/PointsMaterial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ function recomputeTexture(scheme, texture, nbClass) {
148148
data[j + 2] = parseInt(255 * color.b, 10);
149149
data[j + 3] = visible ? parseInt(255 * opacity, 10) : 0;
150150

151-
needTransparency = needTransparency || opacity < 1;
151+
needTransparency = needTransparency || opacity < 1 || !visible;
152152
}
153153
texture.needsUpdate = true;
154154
return needTransparency;

0 commit comments

Comments
 (0)