google / bigwheels

BigWheels is a cross-platform, API agnostic framework to build graphics applications.
Apache License 2.0
94 stars 37 forks source link

[glTF] Use a default material when none is specified #452

Open footballhead opened 7 months ago

footballhead commented 7 months ago

Using scene::GltfLoader, some models in glTF-Sample-Assets fail to load because a material is not provided.

From 3.9.6:

The default material, used when a mesh does not specify a material, is defined to be a material with no properties specified. All the default values of material apply.

This would allow us to load more models like: