How to specify a material for a gltf model #2919
Unanswered
idrisbrewster
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Your texture should already be part of your glTF (have you tried GLB?). Are there any errors/warnings in your JS console? How are you creating/exporting your glTF? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have my gltf loaded and displaying on my site, however it is black. All of the code that I am seeing on the documentation shows me how to swap textures/materials, but none of them show me how to specify the texture as an image for my 3d model.
This seems like something that would only be a few lines of code. Can someone tell me how I can apply my texture image to my gltf model?
Beta Was this translation helpful? Give feedback.
All reactions