qmuntal / gltf

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

Add undefined magFilter/magFilter values for sampler #37

Closed thara closed 3 years ago

thara commented 3 years ago

fixes #36

MagLinear and MinLinear aren't be included in encoded JSON because they are zero values. In the gltf specification, magFilter and magFilter doesn't define any default values, so we add zero values to indicate undefiend filters.

(I'm sorry I'm late!)

qmuntal commented 3 years ago

Thanks for the contribution!