Skip to content

Commit

Permalink
PLYLoader: Add vertex colors back. (#26214)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Jun 8, 2023
1 parent b2f7499 commit a72d668
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/jsm/loaders/PLYLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,12 @@ class PLYLoader extends Loader {

}

if ( buffer.colors.length > 0 ) {

geometry.setAttribute( 'color', new Float32BufferAttribute( buffer.colors, 3 ) );

}

if ( buffer.faceVertexUvs.length > 0 || buffer.faceVertexColors.length > 0 ) {

geometry = geometry.toNonIndexed();
Expand Down

0 comments on commit a72d668

Please sign in to comment.