简体   繁体   中英

how to draw a dynamic line in threejs with mouse down between two points using buffergeometry

I am trying to draw dynamic line on mouse events in threejs webgl canvas using buffergeometry with raycasting. Can anyone help. Thanks in advance.

Try MeshLine , Mesh replacement for THREE.Line

Instead of using GL_LINE, it uses a strip of triangles billboarded.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM