Skip to content

Commit 828024d

Browse files
committed
fix color attribution generation
1 parent 1bd3016 commit 828024d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/GeometryPreparationUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export function setCommonAttributes( geometry, options ) {
104104
if ( ! geometry.attributes.color && ( attributes && attributes.includes( 'color' ) ) ) {
105105

106106
const vertCount = geometry.attributes.position.count;
107-
geometry.setAttribute( 'color', new BufferAttribute( new Float32Array( vertCount * 4 ), 4, true ) );
107+
geometry.setAttribute( 'color', new BufferAttribute( new Float32Array( vertCount * 4 ), 4 ) );
108108

109109
}
110110

0 commit comments

Comments
 (0)