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

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,121 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.0.44",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Sphere"
}
],
"materials":[
{
"doubleSided":true,
"name":"Material.001",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.04434913769364357,
0,
0.8024659156799316,
1
],
"metallicFactor":0.8912280797958374,
"roughnessFactor":0.3807017505168915
}
}
],
"meshes":[
{
"name":"Sphere",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":559,
"max":[
0.9999997019767761,
1,
0.9999993443489075
],
"min":[
-0.9999990463256836,
-1,
-1
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":559,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":559,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":2880,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":6708,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":6708,
"byteOffset":6708,
"target":34962
},
{
"buffer":0,
"byteLength":4472,
"byteOffset":13416,
"target":34962
},
{
"buffer":0,
"byteLength":5760,
"byteOffset":17888,
"target":34963
}
],
"buffers":[
{
"byteLength":23648,
"uri":"blue-sphere.bin"
}
]
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

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"
}
]
}