spite / THREE.MeshLine

Mesh replacement for THREE.Line
MIT License
2.13k stars 379 forks source link

Class constructor ShaderMaterial cannot be invoked without 'new' #142

Closed wodndb closed 2 years ago

wodndb commented 2 years ago

I develop 3D view based on react.

import { MeshLine, MeshLineMaterial, MeshLineRaycast } from "three.meshline";

and I use

const material = new MeshLineMaterial();

And I get

image

Should I install other modules using npm?

tiye commented 2 years ago

Previous conversation that was related to this... https://github.com/spite/THREE.MeshLine/issues/139

wodndb commented 2 years ago

@jiyinyiyong Thanks to reply : )