feat: switched to mobile rendering and various optimizations

This commit is contained in:
Sara 2025-05-31 21:25:14 +02:00
parent 063d3d7e15
commit d6e2881c52
29 changed files with 1281 additions and 307 deletions

235
materials/forest_path.ptex Normal file
View file

@ -0,0 +1,235 @@
{
"connections": [
{
"from": "normal_map2",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "voronoi2",
"from_port": 1,
"to": "colorize_2",
"to_port": 0
},
{
"from": "fbm2_2",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "blend2",
"to_port": 1
},
{
"from": "colorize_2",
"from_port": 0,
"to": "blend2",
"to_port": 3
},
{
"from": "blend2",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "blend2",
"from_port": 0,
"to": "normal_map2",
"to_port": 0
}
],
"label": "Graph",
"longdesc": "",
"name": "416",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"export_last_target": "Godot/Godot 4 Standard",
"export_paths": {
"Blender": "/home/sara/Documents/gd-projects/going/project/materials/leaves",
"Godot/Godot 4 Standard": "/home/sara/Documents/gd-projects/going/project/materials/forest_background"
},
"name": "Material",
"node_position": {
"x": 239.336639,
"y": 211.084656
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao": 1,
"depth_scale": 0.5,
"emission_energy": 1,
"flags_transparent": true,
"metallic": 0.5,
"normal": 1,
"roughness": 1,
"size": 11,
"sss": 1
},
"seed_int": 0,
"type": "material"
},
{
"name": "normal_map2",
"node_position": {
"x": -26.293844,
"y": 770.812927
},
"parameters": {
"buffer": 1,
"param2": 0,
"size": 11,
"strength": 0.04
},
"seed_int": 0,
"type": "normal_map2"
},
{
"name": "voronoi2",
"node_position": {
"x": -1831.151123,
"y": 801.731445
},
"parameters": {
"intensity": 1,
"randomness": 0.85,
"scale_x": 20,
"scale_y": 20,
"stretch_x": 1,
"stretch_y": 1
},
"seed_int": 0,
"type": "voronoi2"
},
{
"name": "colorize_2",
"node_position": {
"x": -1529.762695,
"y": 784.490662
},
"parameters": {
"gradient": {
"interpolation": 1,
"points": [
{
"a": 0,
"b": 0.53125,
"g": 0.53125,
"pos": 0.392064,
"r": 0.53125
},
{
"a": 1,
"b": 0.433594,
"g": 0.433594,
"pos": 0.41879,
"r": 0.433594
},
{
"a": 1,
"b": 0.320312,
"g": 0.320312,
"pos": 0.509699,
"r": 0.320312
}
],
"type": "Gradient"
}
},
"seed_int": 0,
"type": "colorize"
},
{
"name": "fbm2_2",
"node_position": {
"x": -1852.425293,
"y": 567.349365
},
"parameters": {
"folds": 0,
"iterations": 10,
"noise": 0,
"offset": 0,
"persistence": 0.6,
"scale_x": 54,
"scale_y": 54
},
"seed_int": 0,
"type": "fbm2"
},
{
"name": "colorize_3",
"node_position": {
"x": -1512.30957,
"y": 564.000488
},
"parameters": {
"gradient": {
"interpolation": 1,
"points": [
{
"a": 1,
"b": 0.266647,
"g": 0.291941,
"pos": 0,
"r": 0.292969
},
{
"a": 1,
"b": 0.180664,
"g": 0.219666,
"pos": 0.532148,
"r": 0.25
},
{
"a": 1,
"b": 0.036621,
"g": 0.195312,
"pos": 1,
"r": 0.060177
}
],
"type": "Gradient"
}
},
"seed_int": 0,
"type": "colorize"
},
{
"generic_size": 2,
"name": "blend2",
"node_position": {
"x": -898.559509,
"y": 193.264801
},
"parameters": {
"amount1": 1,
"amount2": 0.5,
"blend_type1": 0,
"blend_type2": 0
},
"seed_int": 0,
"type": "blend2"
}
],
"parameters": {
},
"seed_int": 0,
"shortdesc": "",
"type": "graph"
}

191
materials/tree_bark.ptex Normal file
View file

@ -0,0 +1,191 @@
{
"connections": [
{
"from": "fbm2",
"from_port": 0,
"to": "colorize",
"to_port": 0
},
{
"from": "normal_map2",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "colorize",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "fbm2",
"from_port": 0,
"to": "quantize",
"to_port": 0
},
{
"from": "quantize",
"from_port": 0,
"to": "normal_map2",
"to_port": 0
}
],
"label": "Graph",
"longdesc": "",
"name": "4863",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"export_last_target": "Blender",
"export_paths": {
"Blender": "/home/sara/Documents/gd-projects/going/project/materials/tree_bark"
},
"name": "Material",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao": 1,
"depth_scale": 0.5,
"emission_energy": 1,
"flags_transparent": true,
"metallic": 0,
"normal": 1,
"roughness": 1,
"size": 11,
"sss": 1
},
"seed_int": 0,
"type": "material"
},
{
"name": "colorize",
"node_position": {
"x": -567.5,
"y": 79
},
"parameters": {
"gradient": {
"interpolation": 0,
"points": [
{
"a": 1,
"b": 0.125244,
"g": 0.155886,
"pos": 0.157807,
"r": 0.1875
},
{
"a": 1,
"b": 0.176239,
"g": 0.185627,
"pos": 0.325581,
"r": 0.195312
},
{
"a": 1,
"b": 0.125885,
"g": 0.160057,
"pos": 0.342193,
"r": 0.195312
},
{
"a": 1,
"b": 0.168732,
"g": 0.195273,
"pos": 0.410299,
"r": 0.222656
},
{
"a": 1,
"b": 0.13829,
"g": 0.179815,
"pos": 0.466777,
"r": 0.222656
},
{
"a": 1,
"b": 0.103851,
"g": 0.139482,
"pos": 0.553156,
"r": 0.160156
},
{
"a": 1,
"b": 0.158981,
"g": 0.223756,
"pos": 0.611296,
"r": 0.269531
}
],
"type": "Gradient"
}
},
"seed_int": 0,
"type": "colorize"
},
{
"name": "fbm2",
"node_position": {
"x": -939.894348,
"y": 94.240768
},
"parameters": {
"folds": 0,
"iterations": 3,
"noise": 9,
"offset": 0,
"persistence": 1,
"scale_x": 59,
"scale_y": 10
},
"seed_int": 2932558336,
"type": "fbm2"
},
{
"name": "normal_map2",
"node_position": {
"x": -413.051849,
"y": 261.711395
},
"parameters": {
"buffer": 1,
"param2": 0,
"size": 10,
"strength": 1
},
"seed_int": 0,
"type": "normal_map2"
},
{
"name": "quantize",
"node_position": {
"x": -688.051819,
"y": 281.155884
},
"parameters": {
"steps": 13
},
"seed_int": 0,
"type": "quantize"
}
],
"parameters": {
},
"seed_int": 0,
"shortdesc": "",
"type": "graph"
}