Skip to content

Instantly share code, notes, and snippets.

@lucasdidthis
Created December 13, 2019 09:10
Show Gist options
  • Save lucasdidthis/da6118989398f558e76531ca41f1b9a9 to your computer and use it in GitHub Desktop.
Save lucasdidthis/da6118989398f558e76531ca41f1b9a9 to your computer and use it in GitHub Desktop.
JS-function to show the wireframe of an object
wireframe = new THREE.WireframeGeometry( geometry );
line = new THREE.LineSegments( wireframe );
line.material.depthTest = false;
line.material.opacity = 0.6;
line.material.transparent = true;
scene.add( line );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment