qmuntal / gltf

Go library for encoding glTF 2.0 files
https://www.khronos.org/gltf/
BSD 2-Clause "Simplified" License
241 stars 32 forks source link

64bit precision for JSON parsing #73

Closed EliDavis3D closed 7 months ago

EliDavis3D commented 11 months ago

Right now the JSON schema for numbers artificially limits itself to 32bit precision. It'd be nice to be able to pull full precision from the JSON for application like geo-spatial rendering.

https://github.com/qmuntal/gltf/blob/master/gltf.go#L176C19-L176C19

qmuntal commented 7 months ago

The request makes sense. It will be a breaking change, but this module is still in v0 and this change will be a neat benefit for most users.