spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.16k stars 380 forks source link

Using with Aframe - TypeError: Cannot read property 'getUniforms' of undefined #94

Open bknill opened 4 years ago

bknill commented 4 years ago

I'm trying to use this with Aframe and getting the above error when it gets added to the Object

    var geometry = new THREE.Geometry();
    geometry.vertices.push(this.data.start);
    geometry.vertices.push(this.data.end);

    var line = new MeshLine();
    line.setGeometry( geometry );
    var mesh = new THREE.Mesh(line.geometry, material);
    this.el.object3D.add(mesh);

Any ideas what this could be?

three.js:22549 Uncaught TypeError: Cannot read property 'getUniforms' of undefined at M (three.js:22549) at we.renderBufferDirect (three.js:21561) at _ (three.js:22322) at b (three.js:22292) at we.render (three.js:22054)