Skip to content

Instantly share code, notes, and snippets.

@ikeryou
Created September 6, 2016 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikeryou/5d64cf00f70ac61605bbfdae47a566da to your computer and use it in GitHub Desktop.
Save ikeryou/5d64cf00f70ac61605bbfdae47a566da to your computer and use it in GitHub Desktop.
three.jsでのMeshの破棄
scene.remove(mesh);
mesh.material.dispose();
mesh.geometry.dispose();
// テクスチャもう使わない場合は手動で破棄
tex.dispose(); // or mesh.material.map.dispose();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment