Jump to content

dispose EdgesRenderer?


georage
 Share

Recommended Posts

It's easy to dispose a mesh 

mesh.dispose();

but I am having trouble with the syntax for removing EdgesRenderer after I have created it.

I could set the width of the edge to 0.0, of course, but I want to toggle it by removing if possible, since I figure there is some overhead for drawing the edges.

This works, but surely I really want to know how to use the dispose method! (and understand the docs better)

mesh.edgesWidth = 0.0;

The following page says there is a dispose method, but how does that look exactly?

https://doc.babylonjs.com/classes/2.4/EdgesRenderer

Thanks for any assistance. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...