THREE.MeshLine icon indicating copy to clipboard operation
THREE.MeshLine copied to clipboard

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

Open bknill opened this issue 5 years ago • 0 comments

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)

bknill avatar Jan 30 '20 23:01 bknill