Skip to content

Commit

Permalink
glTF spec/gloss materials support textures
Browse files Browse the repository at this point in the history
Cherry-picked from TB

Change-Id: Id000b015ab401d4269fee455d8dddb37cd0c52ae
  • Loading branch information
dubois committed Feb 11, 2020
1 parent c9dae80 commit d5c68f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UnitySDK/Assets/TiltBrush/Scripts/Gltf/Gltf2Schema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,9 @@ private IEnumerable<TextureInfo> TextureInfos {
if (pbrMetallicRoughness != null) {
yield return pbrMetallicRoughness.baseColorTexture;
yield return pbrMetallicRoughness.metallicRoughnessTexture;
} else if (extensions?.KHR_materials_pbrSpecularGlossiness != null) {
var specGloss = extensions.KHR_materials_pbrSpecularGlossiness;
yield return specGloss.diffuseTexture;
}
}
}
Expand Down

0 comments on commit d5c68f7

Please sign in to comment.