-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
106 changed files
with
2,137 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
use std::io::BufReader; | ||
use std::io::Read; | ||
|
||
use serde::{Deserialize, Serialize}; | ||
|
||
use cesiumtiles::gltf_extensions::gltf; | ||
use cesiumtiles::gltf_extensions::mesh; | ||
|
||
#[derive(Debug, Serialize, Deserialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct Gltf { | ||
#[serde(default, skip_serializing_if = "Vec::is_empty")] | ||
pub meshes: Vec<Mesh>, | ||
|
||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub extensions: Option<GltfExtension>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Default, PartialEq, Clone)] | ||
#[serde[rename_all = "camelCase"]] | ||
pub struct Mesh { | ||
pub primitives: Vec<MeshPrimitive>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Default, PartialEq, Clone)] | ||
#[serde[rename_all = "camelCase"]] | ||
pub struct MeshPrimitive { | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub extensions: Option<MeshPrimitiveExtension>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Default, PartialEq, Clone)] | ||
pub struct MeshPrimitiveExtension { | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
#[serde(rename = "EXT_mesh_features")] | ||
pub ext_mesh_features: Option<mesh::ext_mesh_features::ExtMeshFeatures>, | ||
|
||
#[serde(skip_serializing_if = "Option::is_none")] | ||
#[serde(rename = "EXT_structural_metadata")] | ||
pub ext_structural_metadata: Option<mesh::ext_structural_metadata::ExtStructuralMetadata>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Debug, Default, PartialEq)] | ||
pub struct GltfExtension { | ||
#[serde(rename = "EXT_structural_metadata")] | ||
#[serde(skip_serializing_if = "Option::is_none")] | ||
pub ext_structural_metadata: Option<gltf::ext_structural_metadata::ExtStructuralMetadata>, | ||
} | ||
|
||
#[test] | ||
fn load_gltf_json() { | ||
for path in glob::glob("./tests/samples/**/*.gltf").unwrap() { | ||
let path = path.unwrap(); | ||
println!("loading {:?}", path); | ||
let src = std::fs::read_to_string(path).unwrap(); | ||
let a: Gltf = serde_json::from_str(&src).unwrap(); | ||
let _ = format!("{:?}", a); | ||
|
||
// 'null' should not appear in output | ||
let a = serde_json::to_string(&a).unwrap(); | ||
assert!(!a.contains("null")); | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+1.77 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_1__0_0_0.glb
Binary file not shown.
Binary file added
BIN
+1.77 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_2__2_0_0.glb
Binary file not shown.
Binary file added
BIN
+1.77 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_2__3_1_1.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_3__0_4_0.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_3__1_5_1.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_3__2_6_2.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_3__3_7_3.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_4__10_10_2.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_4__11_11_3.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_4__12_12_4.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_4__13_13_5.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_4__14_14_6.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_4__15_15_7.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_4__8_8_0.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_4__9_9_1.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__16_16_16.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__17_17_17.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__18_18_18.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__19_19_19.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__20_20_20.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__21_21_21.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__22_22_22.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__23_23_23.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__24_24_24.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__25_25_25.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__26_26_26.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__27_27_27.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__28_28_28.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__29_29_29.glb
Binary file not shown.
Binary file added
BIN
+1.79 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__30_30_30.glb
Binary file not shown.
Binary file added
BIN
+1.78 KB
tests/samples/gltf/1.1/SparseImplicitOctree/content/content_5__31_31_31.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__0_21.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__10_31.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__11_30.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__12_25.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__13_24.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__14_27.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__15_26.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__16_5.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__17_4.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__18_7.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__19_6.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__1_20.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__20_1.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__21_0.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__22_3.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__23_2.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__24_13.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__25_12.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__26_15.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__27_14.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__28_9.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__29_8.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__2_23.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__30_11.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__31_10.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__3_22.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__4_17.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__5_16.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__6_19.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__7_18.glb
Binary file not shown.
Binary file added
BIN
+1.18 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__8_29.glb
Binary file not shown.
Binary file added
BIN
+1.19 KB
tests/samples/gltf/1.1/SparseImplicitQuadtree/content/content_5__9_28.glb
Binary file not shown.
103 changes: 103 additions & 0 deletions
103
tests/samples/gltf/CESIUM_primitive_outline/BoxPrimitiveOutline.gltf
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,103 @@ | ||
{ | ||
"extensionsUsed" : [ "CESIUM_primitive_outline" ], | ||
"accessors" : [ { | ||
"bufferView" : 0, | ||
"byteOffset" : 0, | ||
"componentType" : 5125, | ||
"count" : 36, | ||
"type" : "SCALAR", | ||
"max" : [ 23 ], | ||
"min" : [ 0 ] | ||
}, { | ||
"bufferView" : 1, | ||
"byteOffset" : 0, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"type" : "VEC3", | ||
"max" : [ 1.0, 1.0, 1.0 ], | ||
"min" : [ 0.0, 0.0, 0.0 ] | ||
}, { | ||
"bufferView" : 2, | ||
"byteOffset" : 0, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"type" : "VEC3", | ||
"max" : [ 1.0, 1.0, 1.0 ], | ||
"min" : [ -1.0, -1.0, -1.0 ] | ||
}, { | ||
"bufferView" : 3, | ||
"byteOffset" : 0, | ||
"componentType" : 5122, | ||
"count" : 24, | ||
"type" : "SCALAR", | ||
"max" : [ 15 ], | ||
"min" : [ 0 ] | ||
} ], | ||
"asset" : { | ||
"generator" : "JglTF from https://github.com/javagl/JglTF", | ||
"version" : "2.0" | ||
}, | ||
"buffers" : [ { | ||
"uri" : "data:application/gltf-buffer;base64,AAAAAAIAAAABAAAAAAAAAAMAAAACAAAABAAAAAYAAAAFAAAABAAAAAcAAAAGAAAACAAAAAoAAAAJAAAACAAAAAsAAAAKAAAADAAAAA4AAAANAAAADAAAAA8AAAAOAAAAEAAAABIAAAARAAAAEAAAABMAAAASAAAAFAAAABYAAAAVAAAAFAAAABcAAAAWAAAAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAgD8AAAAAAAAAAAAAgD8AAAAAAACAPwAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAgD8AAIA/AACAPwAAgD8AAIA/AACAPwAAAAAAAAAAAACAPwAAAAAAAIA/AACAPwAAgD8AAIA/AACAPwAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAIA/AAAAAAAAgD8AAAAAAACAPwAAgD8AAAAAAACAPwAAgD8AAIA/AAAAAAAAgD8AAIA/AAAAAAAAAAAAAIA/AACAPwAAAAAAAIA/AACAPwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAA", | ||
"byteLength" : 720 | ||
}, { | ||
"uri" : "data:application/gltf-buffer;base64,AAABAAEAAgACAAMAAwAAAAQABQAFAAYABgAHAAcABAAMAA0ACAAJAAsACgAOAA8A", | ||
"byteLength" : 48 | ||
} ], | ||
"bufferViews" : [ { | ||
"name" : "indices", | ||
"buffer" : 0, | ||
"byteOffset" : 0, | ||
"byteLength" : 144, | ||
"target" : 34963 | ||
}, { | ||
"name" : "attribute", | ||
"buffer" : 0, | ||
"byteOffset" : 144, | ||
"byteLength" : 288, | ||
"target" : 34962 | ||
}, { | ||
"name" : "attribute", | ||
"buffer" : 0, | ||
"byteOffset" : 432, | ||
"byteLength" : 288, | ||
"target" : 34962 | ||
}, { | ||
"name" : "outlineIndices", | ||
"buffer" : 1, | ||
"byteOffset" : 0, | ||
"byteLength" : 48 | ||
} ], | ||
"materials" : [ { | ||
"pbrMetallicRoughness" : { | ||
"baseColorFactor" : [ 0.0, 1.0, 0.0, 1.0 ], | ||
"metallicFactor" : 1.0, | ||
"roughnessFactor" : 1.0 | ||
}, | ||
"alphaMode" : "OPAQUE", | ||
"doubleSided" : true | ||
} ], | ||
"meshes" : [ { | ||
"primitives" : [ { | ||
"extensions" : { | ||
"CESIUM_primitive_outline" : { | ||
"indices" : 3 | ||
} | ||
}, | ||
"attributes" : { | ||
"POSITION" : 1, | ||
"NORMAL" : 2 | ||
}, | ||
"indices" : 0, | ||
"material" : 0, | ||
"mode" : 4 | ||
} ] | ||
} ], | ||
"nodes" : [ { | ||
"mesh" : 0 | ||
} ], | ||
"scene" : 0, | ||
"scenes" : [ { | ||
"nodes" : [ 0 ] | ||
} ] | ||
} |
102 changes: 102 additions & 0 deletions
102
tests/samples/gltf/EXT_mesh_features/FeatureIdAttribute.gltf
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,102 @@ | ||
{ | ||
"extensionsUsed" : [ "EXT_mesh_features" ], | ||
"accessors" : [ { | ||
"bufferView" : 0, | ||
"byteOffset" : 0, | ||
"componentType" : 5123, | ||
"count" : 24, | ||
"type" : "SCALAR", | ||
"max" : [ 15 ], | ||
"min" : [ 0 ] | ||
}, { | ||
"bufferView" : 1, | ||
"byteOffset" : 0, | ||
"componentType" : 5126, | ||
"count" : 16, | ||
"type" : "VEC3", | ||
"max" : [ 1.0, 1.0, 0.0 ], | ||
"min" : [ 0.0, 0.0, 0.0 ] | ||
}, { | ||
"bufferView" : 2, | ||
"byteOffset" : 0, | ||
"componentType" : 5126, | ||
"count" : 16, | ||
"type" : "VEC3", | ||
"max" : [ 0.0, 0.0, 1.0 ], | ||
"min" : [ 0.0, 0.0, 1.0 ] | ||
}, { | ||
"bufferView" : 3, | ||
"byteOffset" : 0, | ||
"componentType" : 5121, | ||
"count" : 16, | ||
"type" : "SCALAR", | ||
"max" : [ 3 ], | ||
"min" : [ 0 ] | ||
} ], | ||
"asset" : { | ||
"generator" : "JglTF from https://github.com/javagl/JglTF", | ||
"version" : "2.0" | ||
}, | ||
"buffers" : [ { | ||
"uri" : "data:application/gltf-buffer;base64,AAABAAIAAQADAAIABAAFAAYABQAHAAYACAAJAAoACQALAAoADAANAA4ADQAPAA4AAAAAAAAAAAAAAAAAZmbmPgAAAAAAAAAAAAAAAGZm5j4AAAAAZmbmPmZm5j4AAAAAzcwMPwAAAAAAAAAAAACAPwAAAAAAAAAAzcwMP2Zm5j4AAAAAAACAP2Zm5j4AAAAAAAAAAM3MDD8AAAAAZmbmPs3MDD8AAAAAAAAAAAAAgD8AAAAAZmbmPgAAgD8AAAAAzcwMP83MDD8AAAAAAACAP83MDD8AAAAAzcwMPwAAgD8AAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAQAAAAEAAAACAAAAAgAAAAIAAAACAAAAAwAAAAMAAAADAAAAAwAAAA==", | ||
"byteLength" : 496 | ||
} ], | ||
"bufferViews" : [ { | ||
"buffer" : 0, | ||
"byteOffset" : 0, | ||
"byteLength" : 48, | ||
"target" : 34963 | ||
}, { | ||
"buffer" : 0, | ||
"byteOffset" : 48, | ||
"byteLength" : 192, | ||
"target" : 34962 | ||
}, { | ||
"buffer" : 0, | ||
"byteOffset" : 240, | ||
"byteLength" : 192, | ||
"target" : 34962 | ||
}, { | ||
"buffer" : 0, | ||
"byteOffset" : 432, | ||
"byteLength" : 64, | ||
"byteStride" : 4, | ||
"target" : 34962 | ||
} ], | ||
"materials" : [ { | ||
"pbrMetallicRoughness" : { | ||
"baseColorFactor" : [ 0.5, 1.0, 0.5, 1.0 ], | ||
"metallicFactor" : 0.0, | ||
"roughnessFactor" : 1.0 | ||
}, | ||
"alphaMode" : "OPAQUE", | ||
"doubleSided" : true | ||
} ], | ||
"meshes" : [ { | ||
"primitives" : [ { | ||
"extensions" : { | ||
"EXT_mesh_features" : { | ||
"featureIds" : [ { | ||
"featureCount" : 4, | ||
"attribute" : 0 | ||
} ] | ||
} | ||
}, | ||
"attributes" : { | ||
"POSITION" : 1, | ||
"NORMAL" : 2, | ||
"_FEATURE_ID_0" : 3 | ||
}, | ||
"indices" : 0, | ||
"material" : 0, | ||
"mode" : 4 | ||
} ] | ||
} ], | ||
"nodes" : [ { | ||
"mesh" : 0 | ||
} ], | ||
"scene" : 0, | ||
"scenes" : [ { | ||
"nodes" : [ 0 ] | ||
} ] | ||
} |
Oops, something went wrong.