pull/5308/merge
Promit Roy 2024-09-16 12:07:25 +08:00 committed by GitHub
commit 6b3609bee4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -1217,6 +1217,14 @@ inline void Texture::Read(Value &obj, Asset &r) {
if (Value *samplerVal = FindUInt(obj, "sampler")) {
sampler = r.samplers.Retrieve(samplerVal->GetUint());
}
if (r.extensionsUsed.KHR_texture_basisu) {
if (Value *pKHR_texture_basisu = FindExtension(obj, "KHR_texture_basisu")) {
if (Value *sourceVal = FindUInt(*pKHR_texture_basisu, "source")) {
source = r.images.Retrieve(sourceVal->GetUint());
}
}
}
}
void Material::SetTextureProperties(Asset &r, Value *prop, TextureInfo &out) {