-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a test for loading gltf with external textures (#409)
Signed-off-by: Luca Della Vedova <[email protected]> Signed-off-by: Luca Della Vedova <[email protected]> Co-authored-by: Louise Poubel <[email protected]>
- Loading branch information
1 parent
aec75f5
commit 629a9be
Showing
4 changed files
with
157 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
{ | ||
"asset" : { | ||
"generator" : "Khronos glTF Blender I/O v1.8.19", | ||
"version" : "2.0" | ||
}, | ||
"scene" : 0, | ||
"scenes" : [ | ||
{ | ||
"name" : "Scene", | ||
"nodes" : [ | ||
0 | ||
] | ||
} | ||
], | ||
"nodes" : [ | ||
{ | ||
"mesh" : 0, | ||
"name" : "PurpleCube" | ||
} | ||
], | ||
"materials" : [ | ||
{ | ||
"doubleSided" : true, | ||
"name" : "PurpleCube", | ||
"pbrMetallicRoughness" : { | ||
"baseColorTexture" : { | ||
"index" : 0 | ||
}, | ||
"metallicFactor" : 0, | ||
"roughnessFactor" : 0.5 | ||
} | ||
} | ||
], | ||
"meshes" : [ | ||
{ | ||
"name" : "PurpleCube", | ||
"primitives" : [ | ||
{ | ||
"attributes" : { | ||
"POSITION" : 0, | ||
"NORMAL" : 1, | ||
"TEXCOORD_0" : 2 | ||
}, | ||
"indices" : 3, | ||
"material" : 0 | ||
} | ||
] | ||
} | ||
], | ||
"textures" : [ | ||
{ | ||
"sampler" : 0, | ||
"source" : 0 | ||
} | ||
], | ||
"images" : [ | ||
{ | ||
"mimeType" : "image/png", | ||
"name" : "PurpleCube_Diffuse", | ||
"uri" : "PurpleCube_Diffuse.png" | ||
} | ||
], | ||
"accessors" : [ | ||
{ | ||
"bufferView" : 0, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"max" : [ | ||
1, | ||
1, | ||
2 | ||
], | ||
"min" : [ | ||
-1, | ||
-1, | ||
0 | ||
], | ||
"type" : "VEC3" | ||
}, | ||
{ | ||
"bufferView" : 1, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"type" : "VEC3" | ||
}, | ||
{ | ||
"bufferView" : 2, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"type" : "VEC2" | ||
}, | ||
{ | ||
"bufferView" : 3, | ||
"componentType" : 5123, | ||
"count" : 36, | ||
"type" : "SCALAR" | ||
} | ||
], | ||
"bufferViews" : [ | ||
{ | ||
"buffer" : 0, | ||
"byteLength" : 288, | ||
"byteOffset" : 0 | ||
}, | ||
{ | ||
"buffer" : 0, | ||
"byteLength" : 288, | ||
"byteOffset" : 288 | ||
}, | ||
{ | ||
"buffer" : 0, | ||
"byteLength" : 192, | ||
"byteOffset" : 576 | ||
}, | ||
{ | ||
"buffer" : 0, | ||
"byteLength" : 72, | ||
"byteOffset" : 768 | ||
} | ||
], | ||
"samplers" : [ | ||
{ | ||
"magFilter" : 9729, | ||
"minFilter" : 9987 | ||
} | ||
], | ||
"buffers" : [ | ||
{ | ||
"byteLength" : 840, | ||
"uri" : "PurpleCube.bin" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.