Skip to content

Commit

Permalink
fix(PointsMaterial.js): Allow transparency when any class is invisible
Browse files Browse the repository at this point in the history
  • Loading branch information
airnez authored and Desplandis committed Jul 25, 2024
1 parent ad67a6b commit d091207
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Renderer/PointsMaterial.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function recomputeTexture(scheme, texture, nbClass) {
data[j + 2] = parseInt(255 * color.b, 10);
data[j + 3] = visible ? parseInt(255 * opacity, 10) : 0;

needTransparency = needTransparency || opacity < 1;
needTransparency = needTransparency || opacity < 1 || !visible;
}
texture.needsUpdate = true;
return needTransparency;
Expand Down

0 comments on commit d091207

Please sign in to comment.