Created
September 6, 2016 05:30
-
-
Save ikeryou/5d64cf00f70ac61605bbfdae47a566da to your computer and use it in GitHub Desktop.
three.jsでのMeshの破棄
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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