Closed vorg closed 5 years ago
I'd go for a modified option 1: scene loader. It would be good to keep loading and parsing decoupled IMO. The glTF loader should handle the binaries and images. The glTF parser should be responsible for creating pex-renderer entities.
This way we can still keep the freedom of updating a scene/model's properties/images at runtime before rendering it.
To sum up, I don't see the glTF functionality as a component but as an entity builder.
Fixed by dcc40ef8081c621caaba9487e35ebfbbded48100
Currently there is few examples for loading glTF each using copy pasted piece of code. As we are aligning our features with glTF it would be good to have glTF support in the core.
There are different approaches
Scene loader:
Scene component:
Interesting extensions