I'm having a little issue here. I have a THREE.Line
object, with a material and a geometry. The init method pushes 2 vertices to the geometry, add the Line to the scene, the line is rendered just fine.
But I have an event listener... Every click in the canvas will add another vertex. But when the scene is rendered, only the original 2 vertices are rendered. I've output a dump of scene.children
and I'm sure that the Line is in the scene, and the geometry has changed.
In the documentation it says something about applying:
geometry.dynamic = true
geometry.verticesNeedUpdate = true
But these didn't work either.