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

How to add object #68

Open
tufail opened this issue Jul 16, 2021 · 0 comments
Open

How to add object #68

tufail opened this issue Jul 16, 2021 · 0 comments

Comments

@tufail
Copy link

tufail commented Jul 16, 2021

I like to add objects here but i don't know how to use it please help me here are the example from normal javascript

loader.load('assets/ocean.obj', function (object) {
setMaterial(object, matOcean);
addObject(object);
});

loader.load('assets/land.obj', function (object) {
setMaterial(object, matLand);
addObject(object);
});

loader.load('assets/ice.obj', function (object) {
setMaterial(object, matIce);
addObject(object);

});

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