Fix extension loading and add image stream open #1
Reference in New Issue
Block a user
Delete Branch "JoeTwizzle/ReFuel.Gltf:master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR makes extensions visible by checking for the right Json key and marking the respective GltfCollection as an extension collection.
It also adds stream open functionality for images without a URI such as when embedded in a .glb file.
In order to support this I had to make changes to the StreamWrapper class.
Updated to net10.0
Added KhrMaterialsEmissiveStrength in new extensions folder. (Not enabled by default)
Lastly the IExtensionProvider interface was changed in order to provide context about the parent type being parsed to the provider. This is needed for e.g. the KhrLightsPunctual extension.
Thank you for taking the time to work on parts of the project I had not had the chance to test/debug. I'm merging this as is. I will be writing unit tests to diagnose things further. Also, since I have no LICENCE.md, I think we can agree on the terms of the MIT license. I will create it very soon.