The fs.FS interface exists since 1.16 and is a better abstraction that the custom ReadHandler.
The functions EncoderWithReadHandler and Decoder.WithWriteHandler have been removed. Use NewEncoderFS and NewDecoderFS instead.
The memory allocation for external buffers now relies on the fs.FS implementation, so the decoder quotas have been removed.
Additionally, external buffers with non-relative URIs will not be read nor write. This was previously documented but not enforced. The glTF spec only requires (and recommends) relative URIs, so if someone wants to use absolute URIs they will have to implement it on their side.
The
fs.FS
interface exists since 1.16 and is a better abstraction that the customReadHandler
.The functions
EncoderWithReadHandler
andDecoder.WithWriteHandler
have been removed. UseNewEncoderFS
andNewDecoderFS
instead.The memory allocation for external buffers now relies on the fs.FS implementation, so the decoder quotas have been removed.
Additionally, external buffers with non-relative URIs will not be read nor write. This was previously documented but not enforced. The glTF spec only requires (and recommends) relative URIs, so if someone wants to use absolute URIs they will have to implement it on their side.
Fixes #50