Select render mode #2834
Replies: 1 comment
-
Unlit VS Lit all depends on the how the material extension is processed in the GLTFLoader, I don't believe we have any direct way to force this during loading but you could look at the loading process to gather some ideas. I suppose if you wanted to force a material (after it's been loaded) to behave like it's unlit you would have to remove textures and set colors, the unlit extension actually provides some guidance on this:
I think it's a just a matter of using the existing material API to force those settings. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Would like to add/have a way to force unlit even if it's not in the metadata of the gltf/glb models.
Maybe even the possibility to swap between them. Do you have some ideas on where you would start to do this in your code base?
Beta Was this translation helpful? Give feedback.
All reactions