mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
875 lines
14 KiB
Plaintext
875 lines
14 KiB
Plaintext
{
|
|
"connections": [
|
|
{
|
|
"from": "uniform",
|
|
"from_port": 0,
|
|
"to": "Material",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "graph",
|
|
"from_port": 0,
|
|
"to": "sdf3d_scale_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_scale_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_repeat",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_repeat",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean_3",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_scale_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_repeat_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_repeat_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_translate_3_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_translate_3_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean_3",
|
|
"to_port": 1
|
|
},
|
|
{
|
|
"from": "sdf3d_repeat_3",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean_3_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_repeat_2_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_translate_3_2_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_translate_3_2_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean_3_2",
|
|
"to_port": 1
|
|
},
|
|
{
|
|
"from": "sdf3d_scale_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_repeat_3",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_scale_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_repeat_2_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_boolean_3_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean_3_3",
|
|
"to_port": 1
|
|
},
|
|
{
|
|
"from": "sdf3d_boolean_3_3",
|
|
"from_port": 0,
|
|
"to": "sdf3d_translate_3_2_2_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_boolean_3",
|
|
"from_port": 0,
|
|
"to": "sdf3d_translate_3_2_3",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_translate_3_2_3",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean_3_3",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_translate_3_2_2_2",
|
|
"from_port": 0,
|
|
"to": "raymarching",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "raymarching",
|
|
"from_port": 1,
|
|
"to": "Material",
|
|
"to_port": 4
|
|
},
|
|
{
|
|
"from": "occlusion",
|
|
"from_port": 0,
|
|
"to": "Material",
|
|
"to_port": 5
|
|
},
|
|
{
|
|
"from": "raymarching",
|
|
"from_port": 0,
|
|
"to": "occlusion",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "raymarching",
|
|
"from_port": 0,
|
|
"to": "colorize",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "colorize",
|
|
"from_port": 0,
|
|
"to": "Material",
|
|
"to_port": 6
|
|
}
|
|
],
|
|
"label": "Graph",
|
|
"name": "49",
|
|
"node_position": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"nodes": [
|
|
{
|
|
"name": "Material",
|
|
"node_position": {
|
|
"x": 701,
|
|
"y": 78
|
|
},
|
|
"parameters": {
|
|
"albedo_color": {
|
|
"a": 1,
|
|
"b": 1,
|
|
"g": 1,
|
|
"r": 1,
|
|
"type": "Color"
|
|
},
|
|
"ao_light_affect": 1,
|
|
"depth_scale": 0.5,
|
|
"emission_energy": 1,
|
|
"metallic": 1,
|
|
"normal_scale": 1,
|
|
"roughness": 1,
|
|
"size": 11,
|
|
"subsurf_scatter_strength": 0
|
|
},
|
|
"type": "material"
|
|
},
|
|
{
|
|
"name": "uniform",
|
|
"node_position": {
|
|
"x": 467.5,
|
|
"y": 78
|
|
},
|
|
"parameters": {
|
|
"color": {
|
|
"a": 1,
|
|
"b": 0.180392,
|
|
"g": 0.372549,
|
|
"r": 0.768627,
|
|
"type": "Color"
|
|
}
|
|
},
|
|
"type": "uniform"
|
|
},
|
|
{
|
|
"name": "sdf3d_repeat",
|
|
"node_position": {
|
|
"x": -224.214783,
|
|
"y": -156
|
|
},
|
|
"parameters": {
|
|
"r": 0.3,
|
|
"rx": 6,
|
|
"ry": 6
|
|
},
|
|
"type": "sdf3d_repeat"
|
|
},
|
|
{
|
|
"name": "sdf3d_scale_2",
|
|
"node_position": {
|
|
"x": -422.214783,
|
|
"y": 72
|
|
},
|
|
"parameters": {
|
|
"s": 0.25
|
|
},
|
|
"type": "sdf3d_scale"
|
|
},
|
|
{
|
|
"name": "sdf3d_boolean_3",
|
|
"node_position": {
|
|
"x": -6.214783,
|
|
"y": -55
|
|
},
|
|
"parameters": {
|
|
"op": 0
|
|
},
|
|
"type": "sdf3d_boolean"
|
|
},
|
|
{
|
|
"connections": [
|
|
{
|
|
"from": "sdf3d_box",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean",
|
|
"to_port": 1
|
|
},
|
|
{
|
|
"from": "sdf3d_box_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_translate_3_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_translate_3_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_translate_3_2_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_boolean",
|
|
"from_port": 0,
|
|
"to": "sdf3d_boolean_2",
|
|
"to_port": 1
|
|
},
|
|
{
|
|
"from": "sdf3d_box_2",
|
|
"from_port": 0,
|
|
"to": "sdf3d_translate_3_2_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "sdf3d_boolean_2",
|
|
"from_port": 0,
|
|
"to": "gen_outputs",
|
|
"to_port": 0
|
|
}
|
|
],
|
|
"label": "Brick",
|
|
"name": "graph",
|
|
"node_position": {
|
|
"x": -427.111115,
|
|
"y": 2.638885
|
|
},
|
|
"nodes": [
|
|
{
|
|
"name": "sdf3d_box",
|
|
"node_position": {
|
|
"x": -564.5,
|
|
"y": -63
|
|
},
|
|
"parameters": {
|
|
"r": 0.01,
|
|
"sx": 0.26,
|
|
"sy": 0.15,
|
|
"sz": 0.1
|
|
},
|
|
"type": "sdf3d_box"
|
|
},
|
|
{
|
|
"name": "sdf3d_translate_3_2",
|
|
"node_position": {
|
|
"x": -554.5,
|
|
"y": -166
|
|
},
|
|
"parameters": {
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0.45
|
|
},
|
|
"type": "sdf3d_translate"
|
|
},
|
|
{
|
|
"name": "sdf3d_box_2",
|
|
"node_position": {
|
|
"x": -570.5,
|
|
"y": -294.5
|
|
},
|
|
"parameters": {
|
|
"r": 0,
|
|
"sx": 0.21,
|
|
"sy": 0.1,
|
|
"sz": 0.36
|
|
},
|
|
"type": "sdf3d_box"
|
|
},
|
|
{
|
|
"name": "sdf3d_boolean",
|
|
"node_position": {
|
|
"x": -358.5,
|
|
"y": -118
|
|
},
|
|
"parameters": {
|
|
"op": 1
|
|
},
|
|
"type": "sdf3d_boolean"
|
|
},
|
|
{
|
|
"name": "sdf3d_translate_3_2_2",
|
|
"node_position": {
|
|
"x": -343.333344,
|
|
"y": -224.333344
|
|
},
|
|
"parameters": {
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": -0.45
|
|
},
|
|
"type": "sdf3d_translate"
|
|
},
|
|
{
|
|
"name": "sdf3d_boolean_2",
|
|
"node_position": {
|
|
"x": -147.333344,
|
|
"y": -168.333344
|
|
},
|
|
"parameters": {
|
|
"op": 1
|
|
},
|
|
"type": "sdf3d_boolean"
|
|
},
|
|
{
|
|
"name": "gen_inputs",
|
|
"node_position": {
|
|
"x": -748.5,
|
|
"y": -159.361115
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"ports": [
|
|
|
|
],
|
|
"type": "ios"
|
|
},
|
|
{
|
|
"name": "gen_outputs",
|
|
"node_position": {
|
|
"x": 60.666656,
|
|
"y": -165.361115
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"ports": [
|
|
{
|
|
"name": "port0",
|
|
"type": "sdf3d"
|
|
}
|
|
],
|
|
"type": "ios"
|
|
},
|
|
{
|
|
"name": "gen_parameters",
|
|
"node_position": {
|
|
"x": -488.111115,
|
|
"y": -466.5
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"type": "remote",
|
|
"widgets": [
|
|
|
|
]
|
|
}
|
|
],
|
|
"parameters": {
|
|
|
|
},
|
|
"type": "graph"
|
|
},
|
|
{
|
|
"name": "sdf3d_repeat_2",
|
|
"node_position": {
|
|
"x": -225.542572,
|
|
"y": -52.060181
|
|
},
|
|
"parameters": {
|
|
"r": 0.3,
|
|
"rx": 6,
|
|
"ry": 6
|
|
},
|
|
"type": "sdf3d_repeat"
|
|
},
|
|
{
|
|
"name": "sdf3d_translate_3_2",
|
|
"node_position": {
|
|
"x": -224.542572,
|
|
"y": 49.939819
|
|
},
|
|
"parameters": {
|
|
"x": 0.09,
|
|
"y": 0.09,
|
|
"z": 0
|
|
},
|
|
"type": "sdf3d_translate"
|
|
},
|
|
{
|
|
"name": "sdf3d_repeat_2_2",
|
|
"node_position": {
|
|
"x": -220.331467,
|
|
"y": 259.034729
|
|
},
|
|
"parameters": {
|
|
"r": 0.3,
|
|
"rx": 6,
|
|
"ry": 6
|
|
},
|
|
"type": "sdf3d_repeat"
|
|
},
|
|
{
|
|
"name": "sdf3d_repeat_3",
|
|
"node_position": {
|
|
"x": -219.003677,
|
|
"y": 155.09491
|
|
},
|
|
"parameters": {
|
|
"r": 0.3,
|
|
"rx": 6,
|
|
"ry": 6
|
|
},
|
|
"type": "sdf3d_repeat"
|
|
},
|
|
{
|
|
"name": "sdf3d_translate_3_2_2",
|
|
"node_position": {
|
|
"x": -219.331467,
|
|
"y": 361.034729
|
|
},
|
|
"parameters": {
|
|
"x": 0.09,
|
|
"y": 0.09,
|
|
"z": 0
|
|
},
|
|
"type": "sdf3d_translate"
|
|
},
|
|
{
|
|
"name": "sdf3d_boolean_3_2",
|
|
"node_position": {
|
|
"x": -19.003677,
|
|
"y": 251.09491
|
|
},
|
|
"parameters": {
|
|
"op": 0
|
|
},
|
|
"type": "sdf3d_boolean"
|
|
},
|
|
{
|
|
"name": "sdf3d_boolean_3_3",
|
|
"node_position": {
|
|
"x": 195.957428,
|
|
"y": 116.689819
|
|
},
|
|
"parameters": {
|
|
"op": 0
|
|
},
|
|
"type": "sdf3d_boolean"
|
|
},
|
|
{
|
|
"name": "sdf3d_translate_3_2_2_2",
|
|
"node_position": {
|
|
"x": 179.457428,
|
|
"y": 193.189819
|
|
},
|
|
"parameters": {
|
|
"x": 0,
|
|
"y": 0,
|
|
"z": 0.3
|
|
},
|
|
"type": "sdf3d_translate"
|
|
},
|
|
{
|
|
"name": "sdf3d_translate_3_2_3",
|
|
"node_position": {
|
|
"x": -26.542572,
|
|
"y": 18.189819
|
|
},
|
|
"parameters": {
|
|
"x": 0.04,
|
|
"y": 0.04,
|
|
"z": 0.15
|
|
},
|
|
"type": "sdf3d_translate"
|
|
},
|
|
{
|
|
"name": "raymarching",
|
|
"node_position": {
|
|
"x": 184.457397,
|
|
"y": 297.189819
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"type": "raymarching"
|
|
},
|
|
{
|
|
"connections": [
|
|
{
|
|
"from": "buffer",
|
|
"from_port": 0,
|
|
"to": "blurx_convolution",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "buffer_2",
|
|
"from_port": 0,
|
|
"to": "blurx_convolution_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "gen_inputs",
|
|
"from_port": 0,
|
|
"to": "buffer",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "blend",
|
|
"from_port": 0,
|
|
"to": "colorize",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "blurx_convolution",
|
|
"from_port": 0,
|
|
"to": "buffer_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "blurx_convolution_2",
|
|
"from_port": 0,
|
|
"to": "blend",
|
|
"to_port": 1
|
|
},
|
|
{
|
|
"from": "buffer",
|
|
"from_port": 0,
|
|
"to": "blend",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "colorize",
|
|
"from_port": 0,
|
|
"to": "_2",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "_2",
|
|
"from_port": 0,
|
|
"to": "gen_outputs",
|
|
"to_port": 0
|
|
}
|
|
],
|
|
"label": "Occlusion",
|
|
"name": "occlusion",
|
|
"node_position": {
|
|
"x": 410.234558,
|
|
"y": 289.189819
|
|
},
|
|
"nodes": [
|
|
{
|
|
"convolution_params": {
|
|
"input_type": "rgba",
|
|
"matrix_function": "exp(-0.5*(pow(x/sigma, 2.0)))/(6.28318530718 *sigma*sigma)",
|
|
"normalized": true,
|
|
"output_type": "rgba",
|
|
"parameters": [
|
|
{
|
|
"max": 50,
|
|
"min": 0.05,
|
|
"name": "sigma",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"x": 50,
|
|
"y": 0
|
|
},
|
|
"name": "blurx_convolution",
|
|
"node_position": {
|
|
"x": -407.5,
|
|
"y": -192.5
|
|
},
|
|
"parameters": {
|
|
"sigma": 50,
|
|
"size": 9
|
|
},
|
|
"type": "convolution"
|
|
},
|
|
{
|
|
"name": "buffer_2",
|
|
"node_position": {
|
|
"x": -404.875,
|
|
"y": -116.625
|
|
},
|
|
"parameters": {
|
|
"lod": 0,
|
|
"size": 9
|
|
},
|
|
"type": "buffer"
|
|
},
|
|
{
|
|
"convolution_params": {
|
|
"input_type": "rgba",
|
|
"matrix_function": "exp(-0.5*(pow(y/sigma, 2.0)))/(6.28318530718 *sigma*sigma)",
|
|
"normalized": true,
|
|
"output_type": "rgba",
|
|
"parameters": [
|
|
{
|
|
"max": 50,
|
|
"min": 0.05,
|
|
"name": "sigma",
|
|
"type": "float"
|
|
}
|
|
],
|
|
"x": 0,
|
|
"y": 50
|
|
},
|
|
"name": "blurx_convolution_2",
|
|
"node_position": {
|
|
"x": -407.125,
|
|
"y": -44.375
|
|
},
|
|
"parameters": {
|
|
"sigma": 50,
|
|
"size": 9
|
|
},
|
|
"type": "convolution"
|
|
},
|
|
{
|
|
"name": "buffer",
|
|
"node_position": {
|
|
"x": -408.25,
|
|
"y": -265.75
|
|
},
|
|
"parameters": {
|
|
"lod": 0,
|
|
"size": 9
|
|
},
|
|
"type": "buffer"
|
|
},
|
|
{
|
|
"name": "gen_parameters",
|
|
"node_position": {
|
|
"x": -447.666626,
|
|
"y": -370.666656
|
|
},
|
|
"parameters": {
|
|
"param0": 9,
|
|
"param2": 5.2
|
|
},
|
|
"type": "remote",
|
|
"widgets": [
|
|
{
|
|
"label": "Grid size:",
|
|
"linked_widgets": [
|
|
{
|
|
"node": "buffer",
|
|
"widget": "size"
|
|
},
|
|
{
|
|
"node": "blurx_convolution",
|
|
"widget": "size"
|
|
},
|
|
{
|
|
"node": "buffer_2",
|
|
"widget": "size"
|
|
},
|
|
{
|
|
"node": "blurx_convolution_2",
|
|
"widget": "size"
|
|
}
|
|
],
|
|
"name": "param0",
|
|
"type": "linked_control"
|
|
},
|
|
{
|
|
"label": "Strength",
|
|
"linked_widgets": [
|
|
{
|
|
"node": "_2",
|
|
"widget": "g"
|
|
}
|
|
],
|
|
"name": "param2",
|
|
"type": "linked_control"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "gen_inputs",
|
|
"node_position": {
|
|
"x": -585.666626,
|
|
"y": -112.392853
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"ports": [
|
|
{
|
|
"name": "port0",
|
|
"type": "rgba"
|
|
}
|
|
],
|
|
"type": "ios"
|
|
},
|
|
{
|
|
"name": "gen_outputs",
|
|
"node_position": {
|
|
"x": 55.547607,
|
|
"y": -133.392853
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"ports": [
|
|
{
|
|
"name": "port0",
|
|
"type": "rgba"
|
|
}
|
|
],
|
|
"type": "ios"
|
|
},
|
|
{
|
|
"name": "blend",
|
|
"node_position": {
|
|
"x": -420.79895,
|
|
"y": 27.16272
|
|
},
|
|
"parameters": {
|
|
"amount": 1,
|
|
"blend_type": 11
|
|
},
|
|
"type": "blend"
|
|
},
|
|
{
|
|
"name": "colorize",
|
|
"node_position": {
|
|
"x": -167.79895,
|
|
"y": -178.83728
|
|
},
|
|
"parameters": {
|
|
"gradient": {
|
|
"interpolation": 1,
|
|
"points": [
|
|
{
|
|
"a": 1,
|
|
"b": 1,
|
|
"g": 1,
|
|
"pos": 0,
|
|
"r": 1
|
|
},
|
|
{
|
|
"a": 1,
|
|
"b": 0,
|
|
"g": 0,
|
|
"pos": 1,
|
|
"r": 0
|
|
}
|
|
],
|
|
"type": "Gradient"
|
|
}
|
|
},
|
|
"type": "colorize"
|
|
},
|
|
{
|
|
"name": "_2",
|
|
"node_position": {
|
|
"x": -134.403687,
|
|
"y": -110.29187
|
|
},
|
|
"parameters": {
|
|
"g": 5.2
|
|
},
|
|
"shader_model": {
|
|
"code": "",
|
|
"global": "",
|
|
"inputs": [
|
|
{
|
|
"default": "0.0",
|
|
"label": "",
|
|
"name": "in",
|
|
"type": "f"
|
|
}
|
|
],
|
|
"instance": "",
|
|
"name": "",
|
|
"outputs": [
|
|
{
|
|
"f": "pow($in($uv), $g)",
|
|
"type": "f"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"default": 1,
|
|
"label": "",
|
|
"max": 2,
|
|
"min": 0,
|
|
"name": "g",
|
|
"step": 0.1,
|
|
"type": "float"
|
|
}
|
|
]
|
|
},
|
|
"type": "shader"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"param0": 9,
|
|
"param2": 5.2
|
|
},
|
|
"type": "graph"
|
|
},
|
|
{
|
|
"name": "colorize",
|
|
"node_position": {
|
|
"x": 430.387573,
|
|
"y": 218.189819
|
|
},
|
|
"parameters": {
|
|
"gradient": {
|
|
"interpolation": 1,
|
|
"points": [
|
|
{
|
|
"a": 1,
|
|
"b": 1,
|
|
"g": 1,
|
|
"pos": 0,
|
|
"r": 1
|
|
},
|
|
{
|
|
"a": 1,
|
|
"b": 0,
|
|
"g": 0,
|
|
"pos": 0.563636,
|
|
"r": 0
|
|
}
|
|
],
|
|
"type": "Gradient"
|
|
}
|
|
},
|
|
"type": "colorize"
|
|
}
|
|
],
|
|
"parameters": {
|
|
|
|
},
|
|
"type": "graph"
|
|
} |