-
-
Notifications
You must be signed in to change notification settings - Fork 411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Be tolerant when encountering emissiveFactor with array length 4 #445
Conversation
of 4 instead of aborting the model loading Submitted upstream as syoyo/tinygltf#445
of 4 instead of aborting the model loading Submitted upstream as syoyo/tinygltf#445
The spec says emissiveFactor is https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#reference-material What is gltf-validator's result to emissiveFactor with |
How about if I add an optional "flags" argument to model loading, with a "permissive" flag which enables workarounds like this? |
Adding a flag to control the parsing behavior would be a nice idea. For example...
|
of 4 instead of aborting the model loading
5407c62
to
8c85d5e
Compare
@syoyo how's that now? |
Thanks! Let me give some time to review it. |
Merged! |
Raise a warning when encountering emissiveFactor with array length of 4 and truncate to the first 3 elements, instead of aborting the model loading entirely.