overte-org / overte

Overte open source virtual worlds platform.
https://overte.org/
Other
130 stars 47 forks source link

support for GLTF unlit material #900

Closed SilverfishVR closed 2 months ago

SilverfishVR commented 3 months ago

If a material on a GLTF model uses the KHR_materials_unlit extension, Overte should use the unlit shader on that material, currently it still uses the PBR pipeline even though Overte has a perfectly fine unlit shader.

I believe that unlit, alongside PBR and the newly added MToon, is required for full VRM materials support.

Test models that have KHR_materials_unlit: unlitMonkey.glb unlitMonkeyEmbedded.gltf unlitMonkeySeperate.gltf

You can already load a model as unlit by specifying it in a FST file: unlitmonkey.fst