/
redgpu
/
tinybvh
Обзор
Документация
Войти
/
redgpu
/
tinybvh
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
testdata/smallpine/scene.gltf
469 строк
8 KB
Jacco Bikker
Improved shading, extra models.
23 июн 2025, 23:19
23 июн 2025, 23:19
206bea4
Код
Авторство
О чём код?
{ "accessors": [ { "bufferView": 2, "componentType": 5126, "count": 120, "max": [ 2.7678449153900146, 2.7678449153900146, 73.98431396484375 ], "min": [ -2.7678449153900146, -2.7678449153900146, 0.01688075065612793 ], "type": "VEC3" }, { "bufferView": 2, "byteOffset": 1440, "componentType": 5126, "count": 120, "max": [ 0.9999240040779114, 0.9999240040779114, 1.0 ], "min": [ -0.9999240040779114, -0.9999239444732666, 0.012334886007010937 ], "type": "VEC3" }, { "bufferView": 3, "componentType": 5126, "count": 120, "max": [ 0.9999318718910217, 0.9999998807907104, 0.6269571185112, 1.0 ], "min": [ -0.9999609589576721, -0.9996727108955383, -0.5064041614532471, 1.0 ], "type": "VEC4" }, { "bufferView": 1, "componentType": 5126, "count": 120, "max": [ 0.8518952131271362, 5.224905014038086 ], "min": [ 0.04057779908180237, -4.210211753845215 ], "type": "VEC2" }, { "bufferView": 1, "byteOffset": 960, "componentType": 5126, "count": 120, "max": [ 0.8518952131271362, 5.224905014038086 ], "min": [ 0.04057779908180237, -4.210211753845215 ], "type": "VEC2" }, { "bufferView": 0, "componentType": 5125, "count": 624, "type": "SCALAR" }, { "bufferView": 2, "byteOffset": 2880, "componentType": 5126, "count": 1284, "max": [ 29.1307315826416, 29.10382843017578, 75.01419067382813 ], "min": [ -29.216644287109375, -28.163410186767578, 10.87009048461914 ], "type": "VEC3" }, { "bufferView": 2, "byteOffset": 18288, "componentType": 5126, "count": 1284, "max": [ 0.9978312849998474, 0.9994202852249146, 0.5602885484695435 ], "min": [ -0.9980934858322144, -0.9913734197616577, -0.006840258836746216 ], "type": "VEC3" }, { "bufferView": 3, "byteOffset": 1920, "componentType": 5126, "count": 1284, "max": [ 0.9984471797943115, 0.9998774528503418, 0.9365071058273315, 1.0 ], "min": [ -0.9953073859214783, -0.9996476173400879, -0.9669149518013, -1.0 ], "type": "VEC4" }, { "bufferView": 1, "byteOffset": 1920, "componentType": 5126, "count": 1284, "max": [ 0.9822114706039429, 0.973745584487915 ], "min": [ 0.012114161625504494, 0.015627838671207428 ], "type": "VEC2" }, { "bufferView": 1, "byteOffset": 12192, "componentType": 5126, "count": 1284, "max": [ 0.9822114706039429, 0.973745584487915 ], "min": [ 0.012114161625504494, 0.015627838671207428 ], "type": "VEC2" }, { "bufferView": 0, "byteOffset": 2496, "componentType": 5125, "count": 4326, "type": "SCALAR" } ], "asset": { "extras": { "author": "Oskar \"K1TT3N\" Adamczyk (https://sketchfab.com/K1TT3N)", "license": "CC-BY-4.0 (http://creativecommons.org/licenses/by/4.0/)", "source": "https://sketchfab.com/3d-models/pine-tree-game-ready-dc3fbd9205cf4027a4455d1f415e0478", "title": "Pine Tree [Game-ready]" }, "generator": "Sketchfab-13.68.0", "version": "2.0" }, "bufferViews": [ { "buffer": 0, "byteLength": 19800, "name": "floatBufferViews", "target": 34963 }, { "buffer": 0, "byteLength": 22464, "byteOffset": 19800, "byteStride": 8, "name": "floatBufferViews", "target": 34962 }, { "buffer": 0, "byteLength": 33696, "byteOffset": 42264, "byteStride": 12, "name": "floatBufferViews", "target": 34962 }, { "buffer": 0, "byteLength": 22464, "byteOffset": 75960, "byteStride": 16, "name": "floatBufferViews", "target": 34962 } ], "buffers": [ { "byteLength": 98424, "uri": "scene.bin" } ], "images": [ { "uri": "textures/Trunk_baseColor.png" }, { "uri": "textures/Trunk_normal.png" }, { "uri": "textures/M_TreeAtlas_baseColor.png" }, { "uri": "textures/M_TreeAtlas_metallicRoughness.png" }, { "uri": "textures/M_TreeAtlas_normal.png" } ], "materials": [ { "doubleSided": true, "name": "Trunk", "normalTexture": { "index": 1 }, "pbrMetallicRoughness": { "baseColorTexture": { "index": 0 }, "metallicFactor": 0.0, "roughnessFactor": 0.9819505542 } }, { "alphaMode": "BLEND", "doubleSided": true, "name": "M_TreeAtlas", "normalTexture": { "index": 4 }, "occlusionTexture": { "index": 3 }, "pbrMetallicRoughness": { "baseColorTexture": { "index": 2 }, "metallicFactor": 0.0, "metallicRoughnessTexture": { "index": 3 } } } ], "meshes": [ { "name": "Trunk_Trunk_0", "primitives": [ { "attributes": { "NORMAL": 1, "POSITION": 0, "TANGENT": 2, "TEXCOORD_0": 3, "TEXCOORD_1": 4 }, "indices": 5, "material": 0, "mode": 4 } ] }, { "name": "Branches_M_TreeAtlas_0", "primitives": [ { "attributes": { "NORMAL": 7, "POSITION": 6, "TANGENT": 8, "TEXCOORD_0": 9, "TEXCOORD_1": 10 }, "indices": 11, "material": 1, "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 ], "matrix": [ 0.009999999776482582, 0.0, 0.0, 0.0, 0.0, 0.0, 0.009999999776482582, 0.0, 0.0, -0.009999999776482582, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0 ], "name": "047eac1d52c344eeb26dc5037b36d408.fbx" }, { "children": [ 3, 5 ], "name": "RootNode" }, { "children": [ 4 ], "matrix": [ 100.0, 0.0, 0.0, 0.0, 0.0, -1.629206793918314e-05, -99.99999999999868, 0.0, 0.0, 99.99999999999868, -1.629206793918314e-05, 0.0, 0.0, 0.0, 0.0, 1.0 ], "name": "Trunk" }, { "mesh": 0, "name": "Trunk_Trunk_0" }, { "children": [ 6 ], "matrix": [ 100.0, 0.0, 0.0, 0.0, 0.0, -1.629206793918314e-05, -99.99999999999868, 0.0, 0.0, 99.99999999999868, -1.629206793918314e-05, 0.0, 0.0, 0.0, 0.0, 1.0 ], "name": "Branches" }, { "mesh": 1, "name": "Branches_M_TreeAtlas_0" } ], "samplers": [ { "magFilter": 9729, "minFilter": 9987, "wrapS": 10497, "wrapT": 10497 } ], "scene": 0, "scenes": [ { "name": "Sketchfab_Scene", "nodes": [ 0 ] } ], "textures": [ { "sampler": 0, "source": 0 }, { "sampler": 0, "source": 1 }, { "sampler": 0, "source": 2 }, { "sampler": 0, "source": 3 }, { "sampler": 0, "source": 4 } ] }