render iteration

This commit is contained in:
Jonas H
2026-02-08 14:06:35 +01:00
parent 2422106725
commit 82c3e1e3b0
67 changed files with 6381 additions and 1564 deletions

View File

@@ -4,8 +4,36 @@
"version":"2.0"
},
"extensionsUsed":[
"KHR_lights_punctual",
"EXT_mesh_gpu_instancing"
],
"extensionsRequired":[
"KHR_lights_punctual"
],
"extensions":{
"KHR_lights_punctual":{
"lights":[
{
"color":[
1,
1,
1
],
"intensity":543.5141306588226,
"spot":{
"innerConeAngle":0.18840259313583374,
"outerConeAngle":0.18840259313583374
},
"type":"spot",
"range":1000,
"name":"Spot",
"extras":{
"light_tag":"lighthouse"
}
}
]
}
},
"scene":0,
"scenes":[
{
@@ -13,25 +41,33 @@
"nodes":[
0,
1,
2
2,
3,
4
]
}
],
"nodes":[
{
"children":[
3
],
"mesh":1,
"name":"TerrainPlane"
},
{
"mesh":2,
"mesh":0,
"name":"TreePrime",
"translation":[
0,
16.22920036315918,
29.08228302001953,
39.89393615722656
]
},
{
"children":[
5,
6
],
"mesh":3,
"name":"TerrainPlane",
"scale":[
1.000100016593933,
1,
0
1
]
},
{
@@ -42,36 +78,77 @@
-66.48489379882812
]
},
{
"name":"PlayerSpawn",
"translation":[
-351.4849853515625,
119.54279327392578,
202.97006225585938
]
},
{
"extensions":{
"KHR_lights_punctual":{
"light":0
}
},
"name":"Spot",
"rotation":[
-0.16434744000434875,
-0.37808698415756226,
0.006467622704803944,
0.9110424518585205
],
"translation":[
-392.0350036621094,
238.72787475585938,
244.30006408691406
]
},
{
"extensions":{
"EXT_mesh_gpu_instancing":{
"attributes":{
"TRANSLATION":11,
"ROTATION":12,
"SCALE":13
"TRANSLATION":17,
"ROTATION":18,
"SCALE":19
}
}
},
"mesh":0,
"mesh":1,
"name":"TerrainPlane.0"
},
{
"extensions":{
"EXT_mesh_gpu_instancing":{
"attributes":{
"TRANSLATION":17,
"ROTATION":18,
"SCALE":19
}
}
},
"mesh":2,
"name":"TerrainPlane.1"
}
],
"materials":[
{
"doubleSided":true,
"emissiveFactor":[
1,
1,
1
],
"name":"heightmap",
"name":"terrain"
},
{
"doubleSided":true,
"name":"snow",
"pbrMetallicRoughness":{
"baseColorFactor":[
0,
0,
0,
0.800000011920929,
0.800000011920929,
0.800000011920929,
1
]
],
"metallicFactor":0,
"roughnessFactor":0.5
}
}
],
@@ -90,7 +167,7 @@
]
},
{
"name":"Plane.001",
"name":"Cylinder",
"primitives":[
{
"attributes":{
@@ -98,7 +175,7 @@
"NORMAL":5,
"TEXCOORD_0":6
},
"indices":7,
"indices":3,
"material":0
}
]
@@ -108,11 +185,35 @@
"primitives":[
{
"attributes":{
"POSITION":8,
"NORMAL":9,
"TEXCOORD_0":10
"POSITION":7,
"NORMAL":8,
"TEXCOORD_0":9
},
"indices":3
"indices":3,
"material":1
}
]
},
{
"name":"Plane.001",
"primitives":[
{
"attributes":{
"POSITION":10,
"NORMAL":11,
"TEXCOORD_0":12
},
"indices":13,
"material":0
},
{
"attributes":{
"POSITION":14,
"NORMAL":15,
"TEXCOORD_0":16
},
"indices":13,
"material":1
}
]
}
@@ -121,204 +222,296 @@
{
"bufferView":0,
"componentType":5126,
"count":704,
"count":1280,
"max":[
1,
11.999963760375977,
1
5.561562538146973,
16.066009521484375,
5.561562538146973
],
"min":[
-1,
-5.561562538146973,
0,
-1
-5.561562538146973
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":704,
"count":1280,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":704,
"count":1280,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":1908,
"count":2100,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":18196,
"count":1280,
"max":[
500,
122.76703643798828,
500
5.561562538146973,
16.066009521484375,
5.561562538146973
],
"min":[
-500,
-0.000225067138671875,
-500
-5.561562538146973,
0,
-5.561562538146973
],
"type":"VEC3"
},
{
"bufferView":5,
"componentType":5126,
"count":18196,
"count":1280,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":18196,
"count":1280,
"type":"VEC2"
},
{
"bufferView":7,
"componentType":5123,
"count":61206,
"type":"SCALAR"
"componentType":5126,
"count":1280,
"max":[
5.561562538146973,
16.066009521484375,
5.561562538146973
],
"min":[
-5.561562538146973,
0,
-5.561562538146973
],
"type":"VEC3"
},
{
"bufferView":8,
"componentType":5126,
"count":704,
"max":[
1,
11.999963760375977,
1
],
"min":[
-1,
0,
-1
],
"count":1280,
"type":"VEC3"
},
{
"bufferView":9,
"componentType":5126,
"count":704,
"type":"VEC3"
"count":1280,
"type":"VEC2"
},
{
"bufferView":10,
"componentType":5126,
"count":704,
"type":"VEC2"
"count":10404,
"max":[
500,
110.45686340332031,
500
],
"min":[
-500,
-0.9473495483398438,
-500
],
"type":"VEC3"
},
{
"bufferView":11,
"componentType":5126,
"count":5588,
"count":10404,
"type":"VEC3"
},
{
"bufferView":12,
"componentType":5126,
"count":5588,
"type":"VEC4"
"count":10404,
"type":"VEC2"
},
{
"bufferView":13,
"componentType":5123,
"count":61206,
"type":"SCALAR"
},
{
"bufferView":14,
"componentType":5126,
"count":5588,
"count":10404,
"max":[
500,
110.7568588256836,
500
],
"min":[
-500,
-0.6476199626922607,
-500
],
"type":"VEC3"
},
{
"bufferView":15,
"componentType":5126,
"count":10404,
"type":"VEC3"
},
{
"bufferView":16,
"componentType":5126,
"count":10404,
"type":"VEC2"
},
{
"bufferView":17,
"componentType":5126,
"count":2380,
"type":"VEC3"
},
{
"bufferView":18,
"componentType":5126,
"count":2380,
"type":"VEC4"
},
{
"bufferView":19,
"componentType":5126,
"count":2380,
"type":"VEC3"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":8448,
"byteLength":15360,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":8448,
"byteOffset":8448,
"byteLength":15360,
"byteOffset":15360,
"target":34962
},
{
"buffer":0,
"byteLength":5632,
"byteOffset":16896,
"byteLength":10240,
"byteOffset":30720,
"target":34962
},
{
"buffer":0,
"byteLength":3816,
"byteOffset":22528,
"byteLength":4200,
"byteOffset":40960,
"target":34963
},
{
"buffer":0,
"byteLength":218352,
"byteOffset":26344,
"byteLength":15360,
"byteOffset":45160,
"target":34962
},
{
"buffer":0,
"byteLength":218352,
"byteOffset":244696,
"byteLength":15360,
"byteOffset":60520,
"target":34962
},
{
"buffer":0,
"byteLength":145568,
"byteOffset":463048,
"byteLength":10240,
"byteOffset":75880,
"target":34962
},
{
"buffer":0,
"byteLength":15360,
"byteOffset":86120,
"target":34962
},
{
"buffer":0,
"byteLength":15360,
"byteOffset":101480,
"target":34962
},
{
"buffer":0,
"byteLength":10240,
"byteOffset":116840,
"target":34962
},
{
"buffer":0,
"byteLength":124848,
"byteOffset":127080,
"target":34962
},
{
"buffer":0,
"byteLength":124848,
"byteOffset":251928,
"target":34962
},
{
"buffer":0,
"byteLength":83232,
"byteOffset":376776,
"target":34962
},
{
"buffer":0,
"byteLength":122412,
"byteOffset":608616,
"byteOffset":460008,
"target":34963
},
{
"buffer":0,
"byteLength":8448,
"byteOffset":731028,
"byteLength":124848,
"byteOffset":582420,
"target":34962
},
{
"buffer":0,
"byteLength":8448,
"byteOffset":739476,
"byteLength":124848,
"byteOffset":707268,
"target":34962
},
{
"buffer":0,
"byteLength":5632,
"byteOffset":747924,
"byteLength":83232,
"byteOffset":832116,
"target":34962
},
{
"buffer":0,
"byteLength":67056,
"byteOffset":753556
"byteLength":28560,
"byteOffset":915348
},
{
"buffer":0,
"byteLength":89408,
"byteOffset":820612
"byteLength":38080,
"byteOffset":943908
},
{
"buffer":0,
"byteLength":67056,
"byteOffset":910020
"byteLength":28560,
"byteOffset":981988
}
],
"buffers":[
{
"byteLength":977076,
"byteLength":1010548,
"uri":"terrain.bin"
}
]