Skip to content

Instantly share code, notes, and snippets.

@attila5287
Last active April 9, 2025 13:33
Show Gist options
  • Save attila5287/c313cda7337d56033a3c8b199b92e2f4 to your computer and use it in GitHub Desktop.
Save attila5287/c313cda7337d56033a3c8b199b92e2f4 to your computer and use it in GitHub Desktop.
import for custom-layer of mapbox GL
{
"accessors": [
{
"bufferView": 2,
"componentType": 5126,
"count": 26783,
"max": [
0.5000450611114502,
0.14398007094860077,
0.5007756948471069
],
"min": [
-0.5009104609489441,
-0.13864363729953766,
-0.5005308389663696
],
"type": "VEC3"
},
{
"bufferView": 2,
"byteOffset": 321396,
"componentType": 5126,
"count": 26783,
"max": [
1.0,
1.0,
0.999999463558197
],
"min": [
-0.9999998211860657,
-0.9999999403953552,
-1.0
],
"type": "VEC3"
},
{
"bufferView": 1,
"componentType": 5126,
"count": 26783,
"max": [
0.9995483160018921,
0.9995495676994324
],
"min": [
0.0004516711924225092,
0.00045043230056762695
],
"type": "VEC2"
},
{
"bufferView": 0,
"componentType": 5125,
"count": 110529,
"type": "SCALAR"
}
],
"asset": {
"extras": {
"author": "Mohan4456 (https://sketchfab.com/Mohan4456)",
"license": "SKETCHFAB Standard (https://sketchfab.com/licenses)",
"source": "https://sketchfab.com/3d-models/drone-sample-d948871aeecf4c328553bf7693ff7499",
"title": "Drone Sample"
},
"generator": "Sketchfab-16.59.0",
"version": "2.0"
},
"bufferViews": [
{
"buffer": 0,
"byteLength": 442116,
"name": "floatBufferViews",
"target": 34963
},
{
"buffer": 0,
"byteLength": 214264,
"byteOffset": 442116,
"byteStride": 8,
"name": "floatBufferViews",
"target": 34962
},
{
"buffer": 0,
"byteLength": 642792,
"byteOffset": 656380,
"byteStride": 12,
"name": "floatBufferViews",
"target": 34962
}
],
"buffers": [
{
"byteLength": 1299172,
"uri": "scene.bin"
}
],
"images": [
{
"uri": "textures/material_0_baseColor.png"
}
],
"materials": [
{
"name": "material_0",
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
}
}
}
],
"meshes": [
{
"name": "Object_0",
"primitives": [
{
"attributes": {
"NORMAL": 1,
"POSITION": 0,
"TEXCOORD_0": 2
},
"indices": 3,
"material": 0,
"mode": 4
}
]
}
],
"nodes": [
{
"children": [
1
],
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
2.220446049250313e-16,
-1.0,
0.0,
0.0,
1.0,
2.220446049250313e-16,
0.0,
0.0,
0.0,
0.0,
1.0
],
"name": "Sketchfab_model"
},
{
"children": [
2
],
"name": "root"
},
{
"children": [
3
],
"matrix": [
1.0,
0.0,
0.0,
0.0,
0.0,
2.220446049250313e-16,
1.0,
0.0,
0.0,
-1.0,
2.220446049250313e-16,
0.0,
0.0,
0.0,
0.0,
1.0
],
"name": "GLTF_SceneRootNode"
},
{
"children": [
4
],
"name": "world_0"
},
{
"children": [
5
],
"name": "geometry_0_1"
},
{
"mesh": 0,
"name": "Object_5"
}
],
"samplers": [
{
"magFilter": 9729,
"minFilter": 9987,
"wrapS": 10497,
"wrapT": 10497
}
],
"scene": 0,
"scenes": [
{
"name": "Sketchfab_Scene",
"nodes": [
0
]
}
],
"textures": [
{
"sampler": 0,
"source": 0
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment