Files
CPU-Raytracer/CornellBox.gltf

538 lines
6.8 KiB
JSON

{
"asset":{
"generator":"Khronos glTF Blender I/O v5.2.39",
"version":"2.0"
},
"extensionsUsed":[
"KHR_materials_emissive_strength"
],
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0,
1,
2,
3
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube",
"scale":[
4,
4,
4
]
},
{
"mesh":1,
"name":"Cube.001",
"rotation":[
0,
-0.16425251960754395,
0,
0.9864183068275452
],
"scale":[
1.3000000715255737,
1.3000000715255737,
1.3000000715255737
],
"translation":[
-0.9919793009757996,
1.2572228908538818,
1.3050287961959839
]
},
{
"mesh":2,
"name":"Cube.002",
"rotation":[
0,
0.19977089762687683,
0,
0.9798426628112793
],
"scale":[
1.2508937120437622,
2.5017874240875244,
1.2508937120437622
],
"translation":[
1.065544605255127,
2.468716859817505,
-1.6468403339385986
]
},
{
"mesh":3,
"name":"Plane",
"translation":[
0,
7.972048759460449,
0
]
}
],
"materials":[
{
"doubleSided":true,
"name":"WallWhite"
},
{
"doubleSided":true,
"name":"WallRed"
},
{
"doubleSided":true,
"name":"WallGreen"
},
{
"doubleSided":true,
"emissiveFactor":[
1,
1,
1
],
"extensions":{
"KHR_materials_emissive_strength":{
"emissiveStrength":8
}
},
"name":"Lamp",
"pbrMetallicRoughness":{
"baseColorFactor":[
0,
0,
0,
1
]
}
}
],
"meshes":[
{
"name":"Cube.001",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
},
{
"attributes":{
"POSITION":4,
"NORMAL":5,
"TEXCOORD_0":6
},
"indices":7,
"material":1
},
{
"attributes":{
"POSITION":8,
"NORMAL":9,
"TEXCOORD_0":10
},
"indices":11,
"material":2
}
]
},
{
"name":"Cube.002",
"primitives":[
{
"attributes":{
"POSITION":12,
"NORMAL":13,
"TEXCOORD_0":14
},
"indices":15
}
]
},
{
"name":"Cube.003",
"primitives":[
{
"attributes":{
"POSITION":16,
"NORMAL":17,
"TEXCOORD_0":18
},
"indices":15
}
]
},
{
"name":"Plane",
"primitives":[
{
"attributes":{
"POSITION":19,
"NORMAL":20,
"TEXCOORD_0":21
},
"indices":22,
"material":3
}
]
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":12,
"max":[
1,
2,
1
],
"min":[
-1,
0,
-1
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":12,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":12,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":18,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":4,
"max":[
1,
2,
-1
],
"min":[
-1,
0,
-1
],
"type":"VEC3"
},
{
"bufferView":5,
"componentType":5126,
"count":4,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":4,
"type":"VEC2"
},
{
"bufferView":7,
"componentType":5123,
"count":6,
"type":"SCALAR"
},
{
"bufferView":8,
"componentType":5126,
"count":4,
"max":[
1,
2,
1
],
"min":[
-1,
0,
1
],
"type":"VEC3"
},
{
"bufferView":9,
"componentType":5126,
"count":4,
"type":"VEC3"
},
{
"bufferView":10,
"componentType":5126,
"count":4,
"type":"VEC2"
},
{
"bufferView":11,
"componentType":5123,
"count":6,
"type":"SCALAR"
},
{
"bufferView":12,
"componentType":5126,
"count":24,
"max":[
1,
1,
1
],
"min":[
-1,
-1,
-1
],
"type":"VEC3"
},
{
"bufferView":13,
"componentType":5126,
"count":24,
"type":"VEC3"
},
{
"bufferView":14,
"componentType":5126,
"count":24,
"type":"VEC2"
},
{
"bufferView":15,
"componentType":5123,
"count":36,
"type":"SCALAR"
},
{
"bufferView":16,
"componentType":5126,
"count":24,
"max":[
1,
1,
1
],
"min":[
-1,
-1,
-1
],
"type":"VEC3"
},
{
"bufferView":17,
"componentType":5126,
"count":24,
"type":"VEC3"
},
{
"bufferView":18,
"componentType":5126,
"count":24,
"type":"VEC2"
},
{
"bufferView":19,
"componentType":5126,
"count":4,
"max":[
1,
0,
1
],
"min":[
-1,
0,
-1
],
"type":"VEC3"
},
{
"bufferView":20,
"componentType":5126,
"count":4,
"type":"VEC3"
},
{
"bufferView":21,
"componentType":5126,
"count":4,
"type":"VEC2"
},
{
"bufferView":22,
"componentType":5123,
"count":6,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":144,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":144,
"byteOffset":144,
"target":34962
},
{
"buffer":0,
"byteLength":96,
"byteOffset":288,
"target":34962
},
{
"buffer":0,
"byteLength":36,
"byteOffset":384,
"target":34963
},
{
"buffer":0,
"byteLength":48,
"byteOffset":420,
"target":34962
},
{
"buffer":0,
"byteLength":48,
"byteOffset":468,
"target":34962
},
{
"buffer":0,
"byteLength":32,
"byteOffset":516,
"target":34962
},
{
"buffer":0,
"byteLength":12,
"byteOffset":548,
"target":34963
},
{
"buffer":0,
"byteLength":48,
"byteOffset":560,
"target":34962
},
{
"buffer":0,
"byteLength":48,
"byteOffset":608,
"target":34962
},
{
"buffer":0,
"byteLength":32,
"byteOffset":656,
"target":34962
},
{
"buffer":0,
"byteLength":12,
"byteOffset":688,
"target":34963
},
{
"buffer":0,
"byteLength":288,
"byteOffset":700,
"target":34962
},
{
"buffer":0,
"byteLength":288,
"byteOffset":988,
"target":34962
},
{
"buffer":0,
"byteLength":192,
"byteOffset":1276,
"target":34962
},
{
"buffer":0,
"byteLength":72,
"byteOffset":1468,
"target":34963
},
{
"buffer":0,
"byteLength":288,
"byteOffset":1540,
"target":34962
},
{
"buffer":0,
"byteLength":288,
"byteOffset":1828,
"target":34962
},
{
"buffer":0,
"byteLength":192,
"byteOffset":2116,
"target":34962
},
{
"buffer":0,
"byteLength":48,
"byteOffset":2308,
"target":34962
},
{
"buffer":0,
"byteLength":48,
"byteOffset":2356,
"target":34962
},
{
"buffer":0,
"byteLength":32,
"byteOffset":2404,
"target":34962
},
{
"buffer":0,
"byteLength":12,
"byteOffset":2436,
"target":34963
}
],
"buffers":[
{
"byteLength":2448,
"uri":"CornellBox.bin"
}
]
}