stylized 1-bit rendering

This commit is contained in:
Jonas H
2026-01-21 11:04:55 +01:00
parent 5d2eca0393
commit 2422106725
40 changed files with 2859 additions and 366 deletions

BIN
meshes/terrain.bin Normal file

Binary file not shown.

BIN
meshes/terrain.glb Normal file

Binary file not shown.

325
meshes/terrain.gltf Normal file
View File

@@ -0,0 +1,325 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v5.0.21",
"version":"2.0"
},
"extensionsUsed":[
"EXT_mesh_gpu_instancing"
],
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0,
1,
2
]
}
],
"nodes":[
{
"children":[
3
],
"mesh":1,
"name":"TerrainPlane"
},
{
"mesh":2,
"name":"TreePrime",
"translation":[
0,
1,
0
]
},
{
"name":"Main_Light_Path",
"translation":[
491.1999816894531,
0,
-66.48489379882812
]
},
{
"extensions":{
"EXT_mesh_gpu_instancing":{
"attributes":{
"TRANSLATION":11,
"ROTATION":12,
"SCALE":13
}
}
},
"mesh":0,
"name":"TerrainPlane.0"
}
],
"materials":[
{
"doubleSided":true,
"emissiveFactor":[
1,
1,
1
],
"name":"heightmap",
"pbrMetallicRoughness":{
"baseColorFactor":[
0,
0,
0,
1
]
}
}
],
"meshes":[
{
"name":"Cylinder",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3
}
]
},
{
"name":"Plane.001",
"primitives":[
{
"attributes":{
"POSITION":4,
"NORMAL":5,
"TEXCOORD_0":6
},
"indices":7,
"material":0
}
]
},
{
"name":"Cylinder",
"primitives":[
{
"attributes":{
"POSITION":8,
"NORMAL":9,
"TEXCOORD_0":10
},
"indices":3
}
]
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":704,
"max":[
1,
11.999963760375977,
1
],
"min":[
-1,
0,
-1
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":704,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":704,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":1908,
"type":"SCALAR"
},
{
"bufferView":4,
"componentType":5126,
"count":18196,
"max":[
500,
122.76703643798828,
500
],
"min":[
-500,
-0.000225067138671875,
-500
],
"type":"VEC3"
},
{
"bufferView":5,
"componentType":5126,
"count":18196,
"type":"VEC3"
},
{
"bufferView":6,
"componentType":5126,
"count":18196,
"type":"VEC2"
},
{
"bufferView":7,
"componentType":5123,
"count":61206,
"type":"SCALAR"
},
{
"bufferView":8,
"componentType":5126,
"count":704,
"max":[
1,
11.999963760375977,
1
],
"min":[
-1,
0,
-1
],
"type":"VEC3"
},
{
"bufferView":9,
"componentType":5126,
"count":704,
"type":"VEC3"
},
{
"bufferView":10,
"componentType":5126,
"count":704,
"type":"VEC2"
},
{
"bufferView":11,
"componentType":5126,
"count":5588,
"type":"VEC3"
},
{
"bufferView":12,
"componentType":5126,
"count":5588,
"type":"VEC4"
},
{
"bufferView":13,
"componentType":5126,
"count":5588,
"type":"VEC3"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":8448,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":8448,
"byteOffset":8448,
"target":34962
},
{
"buffer":0,
"byteLength":5632,
"byteOffset":16896,
"target":34962
},
{
"buffer":0,
"byteLength":3816,
"byteOffset":22528,
"target":34963
},
{
"buffer":0,
"byteLength":218352,
"byteOffset":26344,
"target":34962
},
{
"buffer":0,
"byteLength":218352,
"byteOffset":244696,
"target":34962
},
{
"buffer":0,
"byteLength":145568,
"byteOffset":463048,
"target":34962
},
{
"buffer":0,
"byteLength":122412,
"byteOffset":608616,
"target":34963
},
{
"buffer":0,
"byteLength":8448,
"byteOffset":731028,
"target":34962
},
{
"buffer":0,
"byteLength":8448,
"byteOffset":739476,
"target":34962
},
{
"buffer":0,
"byteLength":5632,
"byteOffset":747924,
"target":34962
},
{
"buffer":0,
"byteLength":67056,
"byteOffset":753556
},
{
"buffer":0,
"byteLength":89408,
"byteOffset":820612
},
{
"buffer":0,
"byteLength":67056,
"byteOffset":910020
}
],
"buffers":[
{
"byteLength":977076,
"uri":"terrain.bin"
}
]
}