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

Ability to use elements to manipulate nodes in a model element's three.js tree (f.e. a lume-gltf-model's tree) #263

Open
trusktr opened this issue May 15, 2023 · 0 comments

Comments

@trusktr
Copy link
Member

trusktr commented May 15, 2023

Something like the following that will find a Three.js node with the name some-node and apply a custom material to it, in this case a phong material with color skyblue, so that we don't have to write custom Three.js code outside of the HTML to customize a model's materials:

<lume-model-modifier name="some-node" has="phong-material" color="skyblue">
  <lume-gltf-model src="foo.gltf"></lume-gltf-model>
</lume-model-modifier>
@trusktr trusktr changed the title Ability to use elements to manipulate nodes in a model elements loaded tree (f.e. a lume-gltf-model's tree) Ability to use elements to manipulate nodes in a model element's three.js tree (f.e. a lume-gltf-model's tree) May 15, 2023
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