Skip to content

[glTF] Use a default metarial if none is specified#606

Open
footballhead wants to merge 1 commit into
google:mainfrom
footballhead:gltf_default_material
Open

[glTF] Use a default metarial if none is specified#606
footballhead wants to merge 1 commit into
google:mainfrom
footballhead:gltf_default_material

Conversation

@footballhead

@footballhead footballhead commented Feb 6, 2026

Copy link
Copy Markdown
Collaborator

A mesh primitive is not required to specify a material. If the mesh
primitive does not specify a material then the spec says to use the
default material. The default material uses defaults values where
provided.

Fixes #452

Comment thread include/ppx/scene/scene_gltf_loader.h Outdated
Comment thread projects/gltf_basic_materials/GltfBasicMaterials.cpp Outdated
@footballhead
footballhead force-pushed the gltf_default_material branch 5 times, most recently from bc89979 to 01a8395 Compare February 20, 2026 17:41
A mesh primitive is not required to specify a material. If the mesh
primitive does not specify a material then the spec says to use the
default material. The default material uses defaults values where
provided.

Fixes google#452
@footballhead footballhead changed the title WIP [glTF] Use a default material [glTF] Use a default metarial if none is specified Feb 20, 2026
@footballhead
footballhead requested a review from Keenuts February 20, 2026 18:00
@footballhead
footballhead marked this pull request as ready for review February 20, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[glTF] Use a default material when none is specified

1 participant