Implement PBR

This commit is contained in:
reo 2025-09-26 16:49:36 +03:00
parent f34a9b01a0
commit 3503fc15d2
14 changed files with 659 additions and 10 deletions

View file

@ -0,0 +1,134 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.0.44",
"version":"2.0"
},
"extensionsUsed":[
"KHR_materials_sheen"
],
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Suzanne"
}
],
"materials":[
{
"doubleSided":true,
"extensions":{
"KHR_materials_sheen":{
"sheenColorFactor":[
1.0,
1.0,
1.0
],
"sheenRoughnessFactor":0.5
}
},
"name":"Material.001",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.8002911806106567,
0,
0.04051172733306885,
1
],
"metallicFactor":0.8771929740905762,
"roughnessFactor":0.23684212565422058
}
}
],
"meshes":[
{
"name":"Suzanne",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":1966,
"max":[
1.3671875,
0.984375,
0.8515625
],
"min":[
-1.3671875,
-0.984375,
-0.8515625
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":1966,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":1966,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":2904,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":23592,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":23592,
"byteOffset":23592,
"target":34962
},
{
"buffer":0,
"byteLength":15728,
"byteOffset":47184,
"target":34962
},
{
"buffer":0,
"byteLength":5808,
"byteOffset":62912,
"target":34963
}
],
"buffers":[
{
"byteLength":68720,
"uri":"crystal-monkey.bin"
}
]
}