Gltfio material samplerExternal #3784
-
Hi, Can you just confirm that since there are only SAMPLER_2D generated by the gltfio MaterialGenerator even for the
there is no way I can use the default glTF material to apply an external Stream parameter without swiping the whole material to a self made .filamat? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Correct, you'll need to rebind your primitive to an alternative material if the built-in glTF material doesn't suit your needs. If your application is written in C++, one other possibility is subclassing MaterialProvider. |
Beta Was this translation helpful? Give feedback.
-
For anyone looking for a sample, here is an implementation using MaterialBuilder in a Sceneform context : |
Beta Was this translation helpful? Give feedback.
Correct, you'll need to rebind your primitive to an alternative material if the built-in glTF material doesn't suit your needs.
If your application is written in C++, one other possibility is subclassing MaterialProvider.