diff options
-rw-r--r-- | data/freedesktop.org.xml.in | 7 | ||||
-rw-r--r-- | tests/mime-detection/list | 2 | ||||
-rw-r--r-- | tests/mime-detection/test.gltf | 55 |
3 files changed, 64 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index b0b71518..8796aa52 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -5714,6 +5714,13 @@ command to generate the output files. </magic> <glob pattern="*.glb"/> </mime-type> + <mime-type type="model/gltf+json"> + <comment>glTF model</comment> + <acronym>glTF</acronym> + <expanded-acronym>GL Transmission Format</expanded-acronym> + <sub-class-of type="application/json"/> + <glob pattern="*.gltf"/> + </mime-type> <mime-type type="model/vrml"> <comment>VRML document</comment> <acronym>VRML</acronym> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index 1efb647a..cca1a83f 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -667,6 +667,8 @@ cube.igs model/iges cube.wrl model/vrml # Copied from https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/BoxInterleaved/glTF-Binary/BoxInterleaved.glb test.glb model/gltf-binary +# Copied from https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/TriangleWithoutIndices/glTF/TriangleWithoutIndices.gltf +test.gltf model/gltf+json ox # other text.pdf application/pdf diff --git a/tests/mime-detection/test.gltf b/tests/mime-detection/test.gltf new file mode 100644 index 00000000..4bbb6007 --- /dev/null +++ b/tests/mime-detection/test.gltf @@ -0,0 +1,55 @@ +{
+ "scene" : 0,
+ "scenes" : [
+ {
+ "nodes" : [ 0 ]
+ }
+ ],
+
+ "nodes" : [
+ {
+ "mesh" : 0
+ }
+ ],
+
+ "meshes" : [
+ {
+ "primitives" : [ {
+ "attributes" : {
+ "POSITION" : 0
+ }
+ } ]
+ }
+ ],
+
+ "buffers" : [
+ {
+ "uri" : "triangleWithoutIndices.bin",
+ "byteLength" : 36
+ }
+ ],
+ "bufferViews" : [
+ {
+ "buffer" : 0,
+ "byteOffset" : 0,
+ "byteLength" : 36,
+ "target" : 34962
+ }
+ ],
+ "accessors" : [
+ {
+ "bufferView" : 0,
+ "byteOffset" : 0,
+ "componentType" : 5126,
+ "count" : 3,
+ "type" : "VEC3",
+ "max" : [ 1.0, 1.0, 0.0 ],
+ "min" : [ 0.0, 0.0, 0.0 ]
+ }
+ ],
+
+ "asset" : {
+ "version" : "2.0"
+ }
+}
+
|