Skip to content

Commit

Permalink
Disable depth write when setting transparency
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Sep 27, 2023
1 parent b3668e3 commit 68bf1a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/three/PNTSLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ export class PNTSLoader extends PNTSLoaderBase {
geometry.setAttribute( 'color', new BufferAttribute( RGBA, 4, true ) );
material.vertexColors = true;
material.transparent = true;
material.depthWrite = false;

} else if ( RGB !== null ) {

Expand Down Expand Up @@ -154,6 +155,7 @@ export class PNTSLoader extends PNTSLoaderBase {

material.opacity = opacity;
material.transparent = true;
material.depthWrite = false;

}

Expand Down

0 comments on commit 68bf1a5

Please sign in to comment.