Fixed bricks example, examples updates

This commit is contained in:
RodZill4 2020-03-08 23:01:39 +01:00
parent 8edb94e9de
commit b0f5bdf228
2 changed files with 460 additions and 97 deletions

View File

@ -96,18 +96,6 @@
"to": "Material", "to": "Material",
"to_port": 5 "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": "colorize_1",
"from_port": 0, "from_port": 0,
@ -240,8 +228,8 @@
{ {
"name": "colorize_2", "name": "colorize_2",
"node_position": { "node_position": {
"x": 544.943665, "x": 533.943665,
"y": 159 "y": 141
}, },
"parameters": { "parameters": {
"gradient": { "gradient": {
@ -270,8 +258,8 @@
{ {
"name": "uniform_0", "name": "uniform_0",
"node_position": { "node_position": {
"x": 764, "x": 760,
"y": 164 "y": 156
}, },
"parameters": { "parameters": {
"color": { "color": {
@ -284,18 +272,6 @@
}, },
"type": "uniform" "type": "uniform"
}, },
{
"name": "combine_0",
"node_position": {
"x": 896,
"y": 86
},
"parameters": {
},
"seed_value": 60630,
"type": "combine"
},
{ {
"name": "colorize_4", "name": "colorize_4",
"node_position": { "node_position": {
@ -389,8 +365,8 @@
{ {
"name": "colorize_1", "name": "colorize_1",
"node_position": { "node_position": {
"x": 406.943665, "x": 383.943665,
"y": -80 "y": -76
}, },
"parameters": { "parameters": {
"gradient": { "gradient": {
@ -447,8 +423,8 @@
{ {
"name": "blend_1", "name": "blend_1",
"node_position": { "node_position": {
"x": 316, "x": 288,
"y": 217 "y": 203
}, },
"parameters": { "parameters": {
"amount": 0.5, "amount": 0.5,
@ -498,8 +474,8 @@
{ {
"name": "_2_2", "name": "_2_2",
"node_position": { "node_position": {
"x": 244.467804, "x": 243.467804,
"y": -350.036743 "y": -299.036743
}, },
"parameters": { "parameters": {
"param1": 0, "param1": 0,
@ -543,12 +519,440 @@
} }
] ]
}, },
null, {
"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": {
"interpolation": 1,
"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,
"corner": 0,
"mortar": 0.05,
"pattern": 3,
"repeat": 2,
"round": 0,
"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,
"stretch_x": 1,
"stretch_y": 1
},
"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
},
"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"
}
],
"name": "param0",
"type": "config_control"
}
]
},
{
"name": "gen_outputs",
"node_position": {
"x": 190,
"y": -124
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
},
{
"name": "port1",
"type": "rgba"
}
],
"type": "ios"
}
],
"parameters": {
"param0": 0
},
"type": "graph"
},
{ {
"name": "normal_map_2", "name": "normal_map_2",
"node_position": { "node_position": {
"x": 986.357788, "x": 974.357788,
"y": 281.520294 "y": 284.520294
}, },
"parameters": { "parameters": {
"param0": 11, "param0": 11,

View File

@ -327,8 +327,8 @@
"label": "Wood simple", "label": "Wood simple",
"name": "graph_2", "name": "graph_2",
"node_position": { "node_position": {
"x": -1260.345703, "x": -823.345703,
"y": -185.932098 "y": -124.932098
}, },
"nodes": [ "nodes": [
{ {
@ -556,7 +556,6 @@
"y": -49 "y": -49
}, },
"parameters": { "parameters": {
"Randomness": 0.5,
"angle": 0, "angle": 0,
"layers": 5, "layers": 5,
"length": 0.02, "length": 0.02,
@ -696,8 +695,7 @@
}, },
"parameters": { "parameters": {
"amount": 0.04, "amount": 0.04,
"eps": 0.03, "eps": 0.03
"epsilon": 0
}, },
"shader_model": { "shader_model": {
"global": "", "global": "",
@ -896,14 +894,7 @@
"y": -117.463135 "y": -117.463135
}, },
"parameters": { "parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"name": 0
}, },
"type": "combine" "type": "combine"
}, },
@ -931,13 +922,10 @@
"y": 4.536865 "y": 4.536865
}, },
"parameters": { "parameters": {
"amount": 0.5,
"param0": 10, "param0": 10,
"param1": 1, "param1": 1,
"param2": 0, "param2": 0,
"param3": 0, "param4": 0
"param4": 0,
"size": 4
}, },
"type": "normal_map" "type": "normal_map"
} }
@ -1177,8 +1165,7 @@
"parameters": { "parameters": {
"amount": 1, "amount": 1,
"format": 0, "format": 0,
"size": 11, "size": 11
"type": 0
}, },
"shader_model": { "shader_model": {
"code": "", "code": "",
@ -1248,12 +1235,9 @@
"y": -29.916687 "y": -29.916687
}, },
"parameters": { "parameters": {
"amount": 0.5,
"param0": 11, "param0": 11,
"param1": 1, "param1": 1,
"param2": 0, "param2": 0
"param3": 1,
"size": 4
}, },
"type": "remote", "type": "remote",
"widgets": [ "widgets": [
@ -1336,12 +1320,9 @@
} }
], ],
"parameters": { "parameters": {
"amount": 0.5,
"param0": 11, "param0": 11,
"param1": 1, "param1": 1,
"param2": 0, "param2": 0
"param3": 1,
"size": 4
}, },
"type": "graph" "type": "graph"
}, },
@ -1527,7 +1508,6 @@
}, },
"parameters": { "parameters": {
"param0": 10, "param0": 10,
"param1": 50,
"param2": 1 "param2": 1
}, },
"type": "remote", "type": "remote",
@ -1689,7 +1669,6 @@
], ],
"parameters": { "parameters": {
"param0": 10, "param0": 10,
"param1": 50,
"param2": 1 "param2": 1
}, },
"type": "graph" "type": "graph"
@ -1799,7 +1778,6 @@
}, },
"parameters": { "parameters": {
"param0": 0.25, "param0": 0.25,
"param1": 10,
"param2": 1 "param2": 1
}, },
"type": "remote", "type": "remote",
@ -1831,7 +1809,6 @@
], ],
"parameters": { "parameters": {
"param0": 0.25, "param0": 0.25,
"param1": 10,
"param2": 1 "param2": 1
}, },
"type": "graph" "type": "graph"
@ -1884,8 +1861,8 @@
"label": "Metal", "label": "Metal",
"name": "graph_2_2", "name": "graph_2_2",
"node_position": { "node_position": {
"x": -1257.244629, "x": -820.244629,
"y": -432.490662 "y": -371.490662
}, },
"nodes": [ "nodes": [
{ {
@ -1962,14 +1939,7 @@
"y": -176.48642 "y": -176.48642
}, },
"parameters": { "parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"name": 0
}, },
"type": "combine" "type": "combine"
}, },
@ -2211,8 +2181,8 @@
{ {
"name": "switch", "name": "switch",
"node_position": { "node_position": {
"x": -670.527832, "x": -512.527832,
"y": -352.071716 "y": -343.071716
}, },
"parameters": { "parameters": {
"choices": 3, "choices": 3,
@ -2305,8 +2275,8 @@
"label": "Marble", "label": "Marble",
"name": "graph_3_3_2", "name": "graph_3_3_2",
"node_position": { "node_position": {
"x": -1254.027832, "x": -812.027832,
"y": -320.571716 "y": -250.571716
}, },
"nodes": [ "nodes": [
{ {
@ -2560,14 +2530,7 @@
"y": 39.197388 "y": 39.197388
}, },
"parameters": { "parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"name": 0
}, },
"type": "combine" "type": "combine"
}, },
@ -2589,13 +2552,10 @@
"y": 186.780701 "y": 186.780701
}, },
"parameters": { "parameters": {
"amount": 0.5,
"param0": 11, "param0": 11,
"param1": 2, "param1": 2,
"param2": 0, "param2": 0,
"param3": 0, "param4": 0
"param4": 0,
"size": 4
}, },
"type": "normal_map" "type": "normal_map"
}, },
@ -2623,7 +2583,6 @@
"y": 149.637848 "y": 149.637848
}, },
"parameters": { "parameters": {
"Randomness": 0.5,
"angle": -1, "angle": -1,
"layers": 10, "layers": 10,
"length": 0.05, "length": 0.05,
@ -2900,8 +2859,8 @@
{ {
"name": "uniform_greyscale", "name": "uniform_greyscale",
"node_position": { "node_position": {
"x": -486.94574, "x": -539.94574,
"y": -385.608154 "y": -423.608154
}, },
"parameters": { "parameters": {
"color": 1 "color": 1