material-maker/addons/material_maker/examples/bricks.ptex

1509 lines
25 KiB
Plaintext

{
"connections": [
{
"from": "Perlin",
"from_port": 0,
"to": "Warp",
"to_port": 1
},
{
"from": "Warp",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "blend_0",
"to_port": 2
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "blend_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "colorize_4",
"to_port": 0
},
{
"from": "colorize_4",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "blend_1",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "Warp",
"from_port": 0,
"to": "blend_2",
"to_port": 0
},
{
"from": "Perlin",
"from_port": 0,
"to": "blend_2",
"to_port": 1
},
{
"from": "blend_2",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "blend_2",
"from_port": 0,
"to": "colorize_6",
"to_port": 0
},
{
"from": "Perlin",
"from_port": 0,
"to": "blend_1",
"to_port": 0
},
{
"from": "Perlin",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "uniform_0",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "colorize_3",
"from_port": 0,
"to": "Material",
"to_port": 5
},
{
"from": "uniform_0",
"from_port": 0,
"to": "combine_0",
"to_port": 0
},
{
"from": "colorize_4",
"from_port": 0,
"to": "combine_0",
"to_port": 1
},
{
"from": "colorize_1",
"from_port": 0,
"to": "adjust_hsv_0",
"to_port": 0
},
{
"from": "adjust_hsv_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "graph",
"from_port": 0,
"to": "Warp",
"to_port": 0
},
{
"from": "graph",
"from_port": 1,
"to": "blend_1",
"to_port": 1
},
{
"from": "colorize_6",
"from_port": 0,
"to": "Material",
"to_port": 6
},
{
"from": "blend_2",
"from_port": 0,
"to": "normal_map",
"to_port": 0
},
{
"from": "normal_map",
"from_port": 0,
"to": "Material",
"to_port": 4
}
],
"label": "Graph",
"name": "61",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "colorize_0",
"node_position": {
"x": 560.943665,
"y": 50
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 1,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "Material",
"node_position": {
"x": 1238,
"y": 183
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 0,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "blend_2",
"node_position": {
"x": 457,
"y": 319
},
"parameters": {
"amount": 0.551223,
"blend_type": 0
},
"type": "blend"
},
{
"name": "blend_0",
"node_position": {
"x": 836.943726,
"y": -71
},
"parameters": {
"amount": 1,
"blend_type": 0
},
"type": "blend"
},
{
"name": "colorize_2",
"node_position": {
"x": 544.943665,
"y": 159
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.1,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "uniform_0",
"node_position": {
"x": 764,
"y": 164
},
"parameters": {
"color": {
"a": 1,
"b": 0,
"g": 0,
"r": 0,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "combine_0",
"node_position": {
"x": 896,
"y": 86
},
"parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"name": 0
},
"type": "combine"
},
{
"name": "colorize_4",
"node_position": {
"x": 711,
"y": 215
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0.703125,
"g": 0.703125,
"pos": 1,
"r": 0.703125
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_6",
"node_position": {
"x": 716,
"y": 284
},
"parameters": {
"gradient": {
"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": "colorize_3",
"node_position": {
"x": 711,
"y": 361
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.838542,
"g": 0.838542,
"pos": 0.145455,
"r": 0.838542
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.536364,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_1",
"node_position": {
"x": 406.943665,
"y": -80
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.0016,
"g": 0.0016,
"pos": 0,
"r": 0.307292
},
{
"a": 1,
"b": 0,
"g": 0.180135,
"pos": 0.2,
"r": 0.606771
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.345455,
"r": 0.3125
},
{
"a": 1,
"b": 0,
"g": 0.19869,
"pos": 0.545455,
"r": 0.669271
},
{
"a": 1,
"b": 0.019368,
"g": 0.060224,
"pos": 0.745455,
"r": 0.309896
},
{
"a": 1,
"b": 0,
"g": 0.180135,
"pos": 1,
"r": 0.606771
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_1",
"node_position": {
"x": 316,
"y": 217
},
"parameters": {
"amount": 0.5,
"blend_type": 6
},
"type": "blend"
},
{
"name": "Perlin",
"node_position": {
"x": 32,
"y": 238
},
"parameters": {
"iterations": 6,
"persistence": 0.85,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "Warp",
"node_position": {
"x": 306,
"y": 55.75
},
"parameters": {
"amount": 0.04,
"eps": 0.045,
"epsilon": 0
},
"type": "warp"
},
{
"name": "adjust_hsv_0",
"node_position": {
"x": 590.224792,
"y": -74.268188
},
"parameters": {
"hue": 0,
"saturation": 1,
"value": 1
},
"type": "adjust_hsv"
},
{
"name": "_2_2",
"node_position": {
"x": 244.467804,
"y": -350.036743
},
"parameters": {
"param0": 0,
"param1": 0,
"param2": 0,
"param3": 0
},
"type": "remote",
"widgets": [
{
"configurations": {
"Basket weave": [
{
"node": "Bricks",
"value": 3,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 2,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 2,
"widget": "rows"
},
{
"node": "Bricks",
"value": 2,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Herring bone": [
{
"node": "Bricks",
"value": 2,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 2,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 2,
"widget": "rows"
},
{
"node": "Bricks",
"value": 2,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Running bond 1": [
{
"node": "Bricks",
"value": 0,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 1,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 8,
"widget": "rows"
},
{
"node": "Bricks",
"value": 4,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Running bond 2": [
{
"node": "Bricks",
"value": 1,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 1,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 8,
"widget": "rows"
},
{
"node": "Bricks",
"value": 4,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Spanish bond": [
{
"node": "Bricks",
"value": 4,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 3,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 2,
"widget": "rows"
},
{
"node": "Bricks",
"value": 2,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Uneven": [
{
"node": "Bricks",
"value": 3,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 2,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 2,
"widget": "rows"
},
{
"node": "Bricks",
"value": 2,
"widget": "columns"
},
{
"node": "switch_0",
"value": 1,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
]
},
"label": "Pattern",
"linked_widgets": [
{
"node": "Bricks",
"widget": "pattern"
},
{
"node": "Bricks",
"widget": "repeat"
},
{
"node": "Bricks",
"widget": "rows"
},
{
"node": "Bricks",
"widget": "columns"
},
{
"node": "switch_0",
"widget": "source"
},
{
"node": "voronoi_0",
"widget": "scale_x"
},
{
"node": "voronoi_0",
"widget": "scale_y"
}
],
"type": "config_control"
},
{
"label": "Hue",
"linked_widgets": [
{
"node": "adjust_hsv_0",
"widget": "hue"
}
],
"type": "linked_control"
},
{
"label": "Saturation",
"linked_widgets": [
{
"node": "adjust_hsv_0",
"widget": "saturation"
}
],
"type": "linked_control"
},
{
"label": "Value",
"linked_widgets": [
{
"node": "adjust_hsv_0",
"widget": "value"
}
],
"type": "linked_control"
}
]
},
{
"connections": [
{
"from": "switch_0",
"from_port": 0,
"to": "gen_outputs",
"to_port": 0
},
{
"from": "switch_0",
"from_port": 1,
"to": "gen_outputs",
"to_port": 1
},
{
"from": "Bricks",
"from_port": 0,
"to": "switch_0",
"to_port": 0
},
{
"from": "voronoi_0",
"from_port": 2,
"to": "switch_0",
"to_port": 3
},
{
"from": "voronoi_0",
"from_port": 1,
"to": "colorize_5",
"to_port": 0
},
{
"from": "colorize_5",
"from_port": 0,
"to": "switch_0",
"to_port": 2
},
{
"from": "Bricks",
"from_port": 1,
"to": "switch_0",
"to_port": 1
}
],
"label": "Modular Bricks",
"name": "graph",
"node_position": {
"x": 15,
"y": 56
},
"nodes": [
{
"name": "colorize_5",
"node_position": {
"x": -238.515076,
"y": -62.762329
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.027273,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.2,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "Bricks",
"node_position": {
"x": -250,
"y": -240
},
"parameters": {
"bevel": 0.2,
"columns": 2,
"mortar": 0.05,
"pattern": 3,
"repeat": 2,
"row_offset": 0.5,
"rows": 2
},
"type": "bricks"
},
{
"name": "voronoi_0",
"node_position": {
"x": -248.515076,
"y": -2.762329
},
"parameters": {
"intensity": 1,
"randomness": 1,
"scale_x": 8,
"scale_y": 8
},
"type": "voronoi"
},
{
"name": "switch_0",
"node_position": {
"x": -7.515076,
"y": -126.762329
},
"parameters": {
"choices": 2,
"outputs": 2,
"source": 0
},
"type": "switch"
},
{
"name": "gen_parameters",
"node_position": {
"x": -295.330811,
"y": -317.657043
},
"parameters": {
"param0": 0,
"param1": 0,
"param2": 0,
"param3": 0
},
"type": "remote",
"widgets": [
{
"configurations": {
"Basket weave": [
{
"node": "Bricks",
"value": 3,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 2,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 2,
"widget": "rows"
},
{
"node": "Bricks",
"value": 2,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Herring bone": [
{
"node": "Bricks",
"value": 2,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 2,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 2,
"widget": "rows"
},
{
"node": "Bricks",
"value": 2,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Running bond 1": [
{
"node": "Bricks",
"value": 0,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 1,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 8,
"widget": "rows"
},
{
"node": "Bricks",
"value": 4,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Running bond 2": [
{
"node": "Bricks",
"value": 1,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 1,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 8,
"widget": "rows"
},
{
"node": "Bricks",
"value": 4,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Spanish bond": [
{
"node": "Bricks",
"value": 4,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 3,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 2,
"widget": "rows"
},
{
"node": "Bricks",
"value": 2,
"widget": "columns"
},
{
"node": "switch_0",
"value": 0,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
],
"Uneven": [
{
"node": "Bricks",
"value": 3,
"widget": "pattern"
},
{
"node": "Bricks",
"value": 2,
"widget": "repeat"
},
{
"node": "Bricks",
"value": 2,
"widget": "rows"
},
{
"node": "Bricks",
"value": 2,
"widget": "columns"
},
{
"node": "switch_0",
"value": 1,
"widget": "source"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_x"
},
{
"node": "voronoi_0",
"value": 8,
"widget": "scale_y"
}
]
},
"label": "Pattern",
"linked_widgets": [
{
"node": "Bricks",
"widget": "pattern"
},
{
"node": "Bricks",
"widget": "repeat"
},
{
"node": "Bricks",
"widget": "rows"
},
{
"node": "Bricks",
"widget": "columns"
},
{
"node": "switch_0",
"widget": "source"
},
{
"node": "voronoi_0",
"widget": "scale_x"
},
{
"node": "voronoi_0",
"widget": "scale_y"
}
],
"type": "config_control"
},
{
"label": "Hue",
"linked_widgets": [
{
"node": "adjust_hsv_0",
"widget": "hue"
}
],
"type": "linked_control"
},
{
"label": "Saturation",
"linked_widgets": [
{
"node": "adjust_hsv_0",
"widget": "saturation"
}
],
"type": "linked_control"
},
{
"label": "Value",
"linked_widgets": [
{
"node": "adjust_hsv_0",
"widget": "value"
}
],
"type": "linked_control"
}
]
},
{
"name": "gen_outputs",
"node_position": {
"x": 190,
"y": -124
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
},
{
"name": "port1",
"type": "rgba"
}
],
"type": "ios"
}
],
"parameters": {
},
"type": "graph"
},
{
"connections": [
{
"from": "nm_convolution",
"from_port": 0,
"to": "nm_postprocess",
"to_port": 0
},
{
"from": "nm_postprocess",
"from_port": 0,
"to": "gen_outputs",
"to_port": 0
},
{
"from": "gen_inputs",
"from_port": 0,
"to": "buffer",
"to_port": 0
},
{
"from": "buffer",
"from_port": 0,
"to": "nm_convolution",
"to_port": 0
}
],
"label": "Normal Map",
"name": "normal_map",
"node_position": {
"x": 960.584229,
"y": 273.420258
},
"nodes": [
{
"name": "buffer",
"node_position": {
"x": -687.663818,
"y": 125.60614
},
"parameters": {
"size": 11
},
"type": "buffer"
},
{
"convolution_params": {
"input_type": "f",
"matrix": [
[
[
-1,
-1,
0
],
[
0,
-2,
0
],
[
1,
-1,
0
]
],
[
[
-2,
0,
0
],
0,
[
2,
0,
0
]
],
[
[
-1,
1,
0
],
[
0,
2,
0
],
[
1,
1,
0
]
]
],
"output_type": "rgb",
"x": 1,
"y": 1
},
"name": "nm_convolution",
"node_position": {
"x": -690.25,
"y": 174.25
},
"parameters": {
"size": 11
},
"type": "convolution"
},
{
"name": "nm_postprocess",
"node_position": {
"x": -690.25,
"y": 222.25
},
"parameters": {
"amount": 0.995,
"size": 11
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "vec3(0.0)",
"label": "",
"name": "in",
"type": "rgb"
}
],
"instance": "",
"name": "NormalMapPostProcess",
"outputs": [
{
"rgb": "0.5*normalize($in($uv)*$amount*vec3(-1.0, 1.0, 1.0)*$size/128.0-vec3(0.0, 0.0, 1.0))+vec3(0.5)",
"type": "rgb"
}
],
"parameters": [
{
"default": 9,
"first": 4,
"label": "",
"last": 11,
"name": "size",
"type": "size"
},
{
"default": 1,
"label": "",
"max": 2,
"min": 0,
"name": "amount",
"step": 0.005,
"type": "float"
}
]
},
"type": "shader"
},
{
"name": "gen_parameters",
"node_position": {
"x": -718.910156,
"y": 26.083313
},
"parameters": {
"param0": 11,
"param1": 0.995
},
"type": "remote",
"widgets": [
{
"label": "Size",
"linked_widgets": [
{
"node": "buffer",
"widget": "size"
},
{
"node": "nm_convolution",
"widget": "size"
},
{
"node": "nm_postprocess",
"widget": "size"
}
],
"type": "linked_control"
},
{
"label": "Amount",
"linked_widgets": [
{
"node": "nm_postprocess",
"widget": "amount"
}
],
"type": "linked_control"
}
]
},
{
"name": "gen_outputs",
"node_position": {
"x": -407.663818,
"y": 151.047363
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
},
{
"name": "gen_inputs",
"node_position": {
"x": -870.910156,
"y": 157.047363
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
}
],
"parameters": {
"param0": 11,
"param1": 0.995
},
"type": "graph"
}
],
"parameters": {
},
"type": "graph"
}