Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement clone() and dispose() per threejs #183

Open
DanielJoyce opened this issue Feb 14, 2015 · 0 comments
Open

Implement clone() and dispose() per threejs #183

DanielJoyce opened this issue Feb 14, 2015 · 0 comments

Comments

@DanielJoyce
Copy link
Contributor

Seems a lot of classes in three.dart are missing clone() and dispose(), making scene copying and manual deallocation of resources basically impossible.

Lets say you attach a texture to a shader material as a uniform, then you want to change the texture later. You can't dispose the current texture, leading to leaks.

Same goes to materials.

You can't clone most things either. So you can't trivially clone a scene and show it on two renderers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant