KhronosGroup / glTF-Sample-Assets

To store all models and other assets related to glTF

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid KHR_texture_basisu usage in AnisotropyBarnLamp.gltf

donmccurdy opened this issue · comments

In the AnisotropyBarnLamp.gltf sample, the .ktx2 textures are embedded without the required extensions:

"textures": [
{
"sampler": 0,
"source": 0,
"name": "AnisotropyBarnLamp_normalbump.ktx2"
},
{
"sampler": 0,
"source": 1,
"name": "AnisotropyBarnLamp_occlusionroughnessmetal.ktx2"
},
{
"sampler": 0,
"source": 2,
"name": "AnisotropyBarnLamp_basecolor.ktx2"
},
{
"sampler": 0,
"source": 3,
"name": "AnisotropyBarnLamp_anisotropy.ktx2"
}
],

Compare to the examples in the spec. A quick way to fix this is to read/write the model with glTF Transform, which will automatically append the missing extensions:

gltf-transform cp input.gltf output.gltf

That's what I get for editing raw JSON. Thanks for the issue!