Skip to content

fix: glTF: material color won't be loaded if there's no texture for that material #2298

Merged
raysan5 merged 1 commit intoraysan5:masterfrom
royqh1979:gltf_color
Jan 21, 2022
Merged

fix: glTF: material color won't be loaded if there's no texture for that material #2298
raysan5 merged 1 commit intoraysan5:masterfrom
royqh1979:gltf_color

Conversation

@royqh1979
Copy link
Contributor

When loading a gltf file, if there's no texture setting for a material, it's material won't be loaded(become WHITE by default).

This pr fixes that.

@raysan5 raysan5 merged commit 45ef46c into raysan5:master Jan 21, 2022
@raysan5
Copy link
Owner

raysan5 commented Jan 21, 2022

@royqh1979 Thanks for the review!

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.

2 participants