Skip to content

Commit

Permalink
Merge pull request #18357 from Mugen87/dev29
Browse files Browse the repository at this point in the history
Examples: Fix vertex color setting in ball shooter.
  • Loading branch information
Mugen87 authored Jan 10, 2020
2 parents 588e2c5 + 9309e51 commit e62cb59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/webxr_vr_ballshooter.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@
geometry.setAttribute( 'position', new THREE.Float32BufferAttribute( [ 0, 0, 0, 0, 0, - 1 ], 3 ) );
geometry.setAttribute( 'color', new THREE.Float32BufferAttribute( [ 0.5, 0.5, 0.5, 0, 0, 0 ], 3 ) );

var material = new THREE.LineBasicMaterial( { vertexColors: true, blending: THREE.AdditiveBlending } );
var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors, blending: THREE.AdditiveBlending } );

return new THREE.Line( geometry, material );

Expand Down

0 comments on commit e62cb59

Please sign in to comment.