JSON files are now pretty-printed

This commit is contained in:
RodZill4 2019-10-27 14:36:16 +01:00
parent 1a8cfca668
commit f07e4475a2
59 changed files with 16340 additions and 66 deletions

View File

@ -118,7 +118,7 @@ static func create_gen(data) -> MMGenBase:
generator.set_parameter(p, MMType.deserialize_value(data.parameters[p]))
else:
for p in generator.get_parameter_defs():
if data.has(p.name):
if data.has(p.name) and p.name != "type":
generator.set_parameter(p.name, MMType.deserialize_value(data[p.name]))
generator._post_load()
return generator

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1,259 @@
{"connections":[{"from":"colorize_0","from_port":0,"to":"Material","to_port":0},{"from":"perlin_0","from_port":0,"to":"blend_0","to_port":1},{"from":"pattern_0","from_port":0,"to":"blend_0","to_port":0},{"from":"blend_0","from_port":0,"to":"transform_0","to_port":0},{"from":"transform_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"colorize_1","from_port":0,"to":"transform_0","to_port":4},{"from":"pattern_1","from_port":0,"to":"colorize_1","to_port":0},{"from":"transform_0","from_port":0,"to":"normal_map","to_port":0},{"from":"normal_map","from_port":0,"to":"Material","to_port":4}],"label":"Graph","name":"222","node_position":{"x":0,"y":0},"nodes":[{"name":"perlin_0","node_position":{"x":-254,"y":101},"parameters":{"iterations":4,"persistence":1,"scale_x":32,"scale_y":4},"type":"perlin"},{"name":"pattern_0","node_position":{"x":-272,"y":-14},"parameters":{"mix":0,"x_scale":1,"x_wave":0,"y_scale":1,"y_wave":3},"type":"pattern"},{"name":"blend_0","node_position":{"x":-4,"y":18},"parameters":{"amount":1,"blend_type":2},"type":"blend"},{"name":"pattern_1","node_position":{"x":-295,"y":245},"parameters":{"mix":0,"x_scale":4,"x_wave":4,"y_scale":1,"y_wave":3},"type":"pattern"},{"name":"colorize_1","node_position":{"x":-8,"y":207},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":1,"pos":0,"r":1},{"a":1,"b":0.765625,"g":0.765625,"pos":1,"r":0.765625}],"type":"Gradient"}},"type":"colorize"},{"name":"transform_0","node_position":{"x":206,"y":16},"parameters":{"repeat":false,"rotate":0,"scale_x":1.6,"scale_y":1,"translate_x":0,"translate_y":0},"type":"transform"},{"name":"colorize_0","node_position":{"x":435,"y":12},"parameters":{"gradient":{"points":[{"a":0,"b":0,"g":0.5,"pos":0.081818,"r":0.125},{"a":1,"b":0,"g":0.5,"pos":0.145455,"r":0.125},{"a":1,"b":0,"g":0.203125,"pos":0.436364,"r":0.050781},{"a":1,"b":0,"g":0.362165,"pos":0.727273,"r":0.090541},{"a":1,"b":0,"g":0.203125,"pos":1,"r":0.050781}],"type":"Gradient"}},"type":"colorize"},{"name":"Material","node_position":{"x":790,"y":-6},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":0,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"normal_map","node_position":{"x":478.850098,"y":143.444443},"parameters":{"amount":0.5,"param0":10,"param1":0.995},"type":"normal_map"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "colorize_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "perlin_0",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "pattern_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "transform_0",
"to_port": 0
},
{
"from": "transform_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_1",
"from_port": 0,
"to": "transform_0",
"to_port": 4
},
{
"from": "pattern_1",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "transform_0",
"from_port": 0,
"to": "normal_map",
"to_port": 0
},
{
"from": "normal_map",
"from_port": 0,
"to": "Material",
"to_port": 4
}
],
"label": "Graph",
"name": "222",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "perlin_0",
"node_position": {
"x": -254,
"y": 101
},
"parameters": {
"iterations": 4,
"persistence": 1,
"scale_x": 32,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "pattern_0",
"node_position": {
"x": -272,
"y": -14
},
"parameters": {
"mix": 0,
"x_scale": 1,
"x_wave": 0,
"y_scale": 1,
"y_wave": 3
},
"type": "pattern"
},
{
"name": "blend_0",
"node_position": {
"x": -4,
"y": 18
},
"parameters": {
"amount": 1,
"blend_type": 2
},
"type": "blend"
},
{
"name": "pattern_1",
"node_position": {
"x": -295,
"y": 245
},
"parameters": {
"mix": 0,
"x_scale": 4,
"x_wave": 4,
"y_scale": 1,
"y_wave": 3
},
"type": "pattern"
},
{
"name": "colorize_1",
"node_position": {
"x": -8,
"y": 207
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0.765625,
"g": 0.765625,
"pos": 1,
"r": 0.765625
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "transform_0",
"node_position": {
"x": 206,
"y": 16
},
"parameters": {
"repeat": false,
"rotate": 0,
"scale_x": 1.6,
"scale_y": 1,
"translate_x": 0,
"translate_y": 0
},
"type": "transform"
},
{
"name": "colorize_0",
"node_position": {
"x": 435,
"y": 12
},
"parameters": {
"gradient": {
"points": [
{
"a": 0,
"b": 0,
"g": 0.5,
"pos": 0.081818,
"r": 0.125
},
{
"a": 1,
"b": 0,
"g": 0.5,
"pos": 0.145455,
"r": 0.125
},
{
"a": 1,
"b": 0,
"g": 0.203125,
"pos": 0.436364,
"r": 0.050781
},
{
"a": 1,
"b": 0,
"g": 0.362165,
"pos": 0.727273,
"r": 0.090541
},
{
"a": 1,
"b": 0,
"g": 0.203125,
"pos": 1,
"r": 0.050781
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "Material",
"node_position": {
"x": 790,
"y": -6
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 0,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "normal_map",
"node_position": {
"x": 478.850098,
"y": 143.444443
},
"parameters": {
"amount": 0.5,
"param0": 10,
"param1": 0.995
},
"type": "normal_map"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,228 @@
{"connections":[{"from":"voronoi_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"colorize_0","from_port":0,"to":"normal_map_0","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"voronoi_0","from_port":0,"to":"colorize_1","to_port":0},{"from":"colorize_1","from_port":0,"to":"Material","to_port":0},{"from":"voronoi_0","from_port":0,"to":"colorize_3","to_port":0},{"from":"colorize_3","from_port":0,"to":"Material","to_port":2},{"from":"uniform_0","from_port":0,"to":"Material","to_port":1}],"label":"Graph","name":"240","node_position":{"x":0,"y":0},"nodes":[{"name":"Material","node_position":{"x":674,"y":164},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"colorize_1","node_position":{"x":384,"y":137},"parameters":{"gradient":{"points":[{"a":1,"b":0.010715,"g":0.411458,"pos":0,"r":0.22361},{"a":1,"b":0,"g":1,"pos":1,"r":0.9375}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_3","node_position":{"x":384,"y":258},"parameters":{"gradient":{"points":[{"a":1,"b":0.505208,"g":0.505208,"pos":0,"r":0.505208},{"a":1,"b":0.78125,"g":0.78125,"pos":1,"r":0.78125}],"type":"Gradient"}},"type":"colorize"},{"name":"uniform_0","node_position":{"x":413,"y":208},"parameters":{"color":{"a":1,"b":0,"g":0,"r":0,"type":"Color"}},"type":"uniform"},{"name":"voronoi_0","node_position":{"x":71,"y":216},"parameters":{"intensity":0.4,"randomness":1,"scale_x":16,"scale_y":16},"type":"voronoi"},{"name":"colorize_0","node_position":{"x":264,"y":331},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0,"r":0},{"a":1,"b":0.5,"g":0.5,"pos":0.345455,"r":0.5},{"a":1,"b":1,"g":1,"pos":0.618182,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"normal_map_0","node_position":{"x":479,"y":334},"parameters":{"amount":0.5,"param0":11,"param1":0.99,"size":2},"type":"normal_map"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "voronoi_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "voronoi_0",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "colorize_1",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "voronoi_0",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "uniform_0",
"from_port": 0,
"to": "Material",
"to_port": 1
}
],
"label": "Graph",
"name": "240",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 674,
"y": 164
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "colorize_1",
"node_position": {
"x": 384,
"y": 137
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.010715,
"g": 0.411458,
"pos": 0,
"r": 0.22361
},
{
"a": 1,
"b": 0,
"g": 1,
"pos": 1,
"r": 0.9375
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_3",
"node_position": {
"x": 384,
"y": 258
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.505208,
"g": 0.505208,
"pos": 0,
"r": 0.505208
},
{
"a": 1,
"b": 0.78125,
"g": 0.78125,
"pos": 1,
"r": 0.78125
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "uniform_0",
"node_position": {
"x": 413,
"y": 208
},
"parameters": {
"color": {
"a": 1,
"b": 0,
"g": 0,
"r": 0,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "voronoi_0",
"node_position": {
"x": 71,
"y": 216
},
"parameters": {
"intensity": 0.4,
"randomness": 1,
"scale_x": 16,
"scale_y": 16
},
"type": "voronoi"
},
{
"name": "colorize_0",
"node_position": {
"x": 264,
"y": 331
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 0.5,
"g": 0.5,
"pos": 0.345455,
"r": 0.5
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.618182,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "normal_map_0",
"node_position": {
"x": 479,
"y": 334
},
"parameters": {
"amount": 0.5,
"param0": 11,
"param1": 0.99,
"size": 2
},
"type": "normal_map"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,375 @@
{"connections":[{"from":"perlin_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"voronoi_0","from_port":1,"to":"colorize_1","to_port":0},{"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_1","from_port":0,"to":"warp_0","to_port":0},{"from":"perlin_1","from_port":0,"to":"warp_0","to_port":1},{"from":"warp_0","from_port":0,"to":"blend_0","to_port":0},{"from":"colorize_3","from_port":0,"to":"Material","to_port":1},{"from":"perlin_1","from_port":0,"to":"colorize_3","to_port":0},{"from":"warp_0","from_port":0,"to":"colorize_4","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"colorize_4","from_port":0,"to":"blend_1","to_port":1},{"from":"perlin_0","from_port":0,"to":"blend_1","to_port":0},{"from":"blend_1","from_port":0,"to":"colorize","to_port":0},{"from":"colorize","from_port":0,"to":"normal_map_0","to_port":0},{"from":"blend_1","from_port":0,"to":"Material","to_port":6}],"label":"Graph","name":"258","node_position":{"x":0,"y":0},"nodes":[{"name":"voronoi_0","node_position":{"x":-165,"y":-96.75},"parameters":{"intensity":0.6,"randomness":1,"scale_x":4,"scale_y":4},"type":"voronoi"},{"name":"colorize_1","node_position":{"x":93,"y":-117.75},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0,"r":0},{"a":1,"b":1,"g":1,"pos":0.063636,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"perlin_1","node_position":{"x":-144,"y":50.25},"parameters":{"iterations":3,"persistence":0.5,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"colorize_0","node_position":{"x":338,"y":-237.75},"parameters":{"gradient":{"points":[{"a":1,"b":0.200277,"g":0.378784,"pos":0.245455,"r":0.557292},{"a":1,"b":0.03776,"g":0.150513,"pos":0.645455,"r":0.25}],"type":"Gradient"}},"type":"colorize"},{"name":"perlin_0","node_position":{"x":56,"y":-361.75},"parameters":{"iterations":10,"persistence":0.9,"scale_x":2,"scale_y":2},"type":"perlin"},{"name":"Material","node_position":{"x":944,"y":-30},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":0.1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"colorize_3","node_position":{"x":465,"y":33.25},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0,"r":0},{"a":1,"b":0.520833,"g":0.520833,"pos":1,"r":0.520833}],"type":"Gradient"}},"type":"colorize"},{"name":"blend_0","node_position":{"x":541,"y":-82.75},"parameters":{"amount":0.4,"blend_type":2},"type":"blend"},{"name":"warp_0","node_position":{"x":264,"y":-13.75},"parameters":{"amount":0.4,"eps":0.045,"epsilon":0},"type":"warp"},{"name":"blend_1","node_position":{"x":442,"y":175.25},"parameters":{"amount":0.5,"blend_type":0},"type":"blend"},{"name":"normal_map_0","node_position":{"x":706,"y":95.25},"parameters":{"amount":0.35,"param0":11,"param1":0.99,"size":2},"type":"normal_map"},{"name":"colorize_4","node_position":{"x":252,"y":178.25},"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","node_position":{"x":717.815796,"y":200.5625},"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"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "perlin_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "voronoi_0",
"from_port": 1,
"to": "colorize_1",
"to_port": 0
},
{
"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_1",
"from_port": 0,
"to": "warp_0",
"to_port": 0
},
{
"from": "perlin_1",
"from_port": 0,
"to": "warp_0",
"to_port": 1
},
{
"from": "warp_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "perlin_1",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "warp_0",
"from_port": 0,
"to": "colorize_4",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "colorize_4",
"from_port": 0,
"to": "blend_1",
"to_port": 1
},
{
"from": "perlin_0",
"from_port": 0,
"to": "blend_1",
"to_port": 0
},
{
"from": "blend_1",
"from_port": 0,
"to": "colorize",
"to_port": 0
},
{
"from": "colorize",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
},
{
"from": "blend_1",
"from_port": 0,
"to": "Material",
"to_port": 6
}
],
"label": "Graph",
"name": "258",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "voronoi_0",
"node_position": {
"x": -165,
"y": -96.75
},
"parameters": {
"intensity": 0.6,
"randomness": 1,
"scale_x": 4,
"scale_y": 4
},
"type": "voronoi"
},
{
"name": "colorize_1",
"node_position": {
"x": 93,
"y": -117.75
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.063636,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "perlin_1",
"node_position": {
"x": -144,
"y": 50.25
},
"parameters": {
"iterations": 3,
"persistence": 0.5,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "colorize_0",
"node_position": {
"x": 338,
"y": -237.75
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.200277,
"g": 0.378784,
"pos": 0.245455,
"r": 0.557292
},
{
"a": 1,
"b": 0.03776,
"g": 0.150513,
"pos": 0.645455,
"r": 0.25
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "perlin_0",
"node_position": {
"x": 56,
"y": -361.75
},
"parameters": {
"iterations": 10,
"persistence": 0.9,
"scale_x": 2,
"scale_y": 2
},
"type": "perlin"
},
{
"name": "Material",
"node_position": {
"x": 944,
"y": -30
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 0.1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "colorize_3",
"node_position": {
"x": 465,
"y": 33.25
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 0.520833,
"g": 0.520833,
"pos": 1,
"r": 0.520833
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_0",
"node_position": {
"x": 541,
"y": -82.75
},
"parameters": {
"amount": 0.4,
"blend_type": 2
},
"type": "blend"
},
{
"name": "warp_0",
"node_position": {
"x": 264,
"y": -13.75
},
"parameters": {
"amount": 0.4,
"eps": 0.045,
"epsilon": 0
},
"type": "warp"
},
{
"name": "blend_1",
"node_position": {
"x": 442,
"y": 175.25
},
"parameters": {
"amount": 0.5,
"blend_type": 0
},
"type": "blend"
},
{
"name": "normal_map_0",
"node_position": {
"x": 706,
"y": 95.25
},
"parameters": {
"amount": 0.35,
"param0": 11,
"param1": 0.99,
"size": 2
},
"type": "normal_map"
},
{
"name": "colorize_4",
"node_position": {
"x": 252,
"y": 178.25
},
"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",
"node_position": {
"x": 717.815796,
"y": 200.5625
},
"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"
}
],
"parameters": {
},
"type": "graph"
}

File diff suppressed because one or more lines are too long

View File

@ -1 +1,227 @@
{"connections":[{"from":"perlin_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"colorize_0","from_port":0,"to":"blend_0","to_port":1},{"from":"bricks_0","from_port":0,"to":"blend_0","to_port":0},{"from":"blend_0","from_port":0,"to":"Material","to_port":0},{"from":"bricks_0","from_port":0,"to":"normal_map_0","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"colorize_1","from_port":0,"to":"Material","to_port":2},{"from":"blend_0","from_port":0,"to":"colorize_1","to_port":0},{"from":"uniform_0","from_port":0,"to":"Material","to_port":1}],"label":"Graph","name":"293","node_position":{"x":0,"y":0},"nodes":[{"name":"Material","node_position":{"x":773,"y":290},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"perlin_0","node_position":{"x":7,"y":263},"parameters":{"iterations":7,"persistence":0.85,"scale_x":8,"scale_y":8},"type":"perlin"},{"name":"bricks_0","node_position":{"x":242,"y":382},"parameters":{"bevel":0.01,"columns":4,"mortar":0.01,"pattern":0,"repeat":1,"row_offset":0,"rows":4},"type":"bricks"},{"name":"normal_map_0","node_position":{"x":516,"y":466},"parameters":{"amount":0.2,"param0":11,"param1":0.99,"size":2},"type":"normal_map"},{"name":"colorize_1","node_position":{"x":510,"y":386},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":1,"pos":0,"r":1},{"a":1,"b":0.484375,"g":0.484375,"pos":1,"r":0.484375}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_0","node_position":{"x":232,"y":286},"parameters":{"gradient":{"points":[{"a":1,"b":0.588542,"g":0.742839,"pos":0,"r":1},{"a":1,"b":1,"g":1,"pos":0.654545,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"blend_0","node_position":{"x":419,"y":186},"parameters":{"amount":1,"blend_type":2},"type":"blend"},{"name":"uniform_0","node_position":{"x":563,"y":314},"parameters":{"color":{"a":1,"b":0.128906,"g":0.128906,"r":0.128906,"type":"Color"}},"type":"uniform"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "perlin_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "bricks_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "bricks_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "colorize_1",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "blend_0",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "uniform_0",
"from_port": 0,
"to": "Material",
"to_port": 1
}
],
"label": "Graph",
"name": "293",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 773,
"y": 290
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "perlin_0",
"node_position": {
"x": 7,
"y": 263
},
"parameters": {
"iterations": 7,
"persistence": 0.85,
"scale_x": 8,
"scale_y": 8
},
"type": "perlin"
},
{
"name": "bricks_0",
"node_position": {
"x": 242,
"y": 382
},
"parameters": {
"bevel": 0.01,
"columns": 4,
"mortar": 0.01,
"pattern": 0,
"repeat": 1,
"row_offset": 0,
"rows": 4
},
"type": "bricks"
},
{
"name": "normal_map_0",
"node_position": {
"x": 516,
"y": 466
},
"parameters": {
"amount": 0.2,
"param0": 11,
"param1": 0.99,
"size": 2
},
"type": "normal_map"
},
{
"name": "colorize_1",
"node_position": {
"x": 510,
"y": 386
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0.484375,
"g": 0.484375,
"pos": 1,
"r": 0.484375
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_0",
"node_position": {
"x": 232,
"y": 286
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.588542,
"g": 0.742839,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.654545,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_0",
"node_position": {
"x": 419,
"y": 186
},
"parameters": {
"amount": 1,
"blend_type": 2
},
"type": "blend"
},
{
"name": "uniform_0",
"node_position": {
"x": 563,
"y": 314
},
"parameters": {
"color": {
"a": 1,
"b": 0.128906,
"g": 0.128906,
"r": 0.128906,
"type": "Color"
}
},
"type": "uniform"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,289 @@
{"connections":[{"from":"perlin_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"voronoi_0","from_port":0,"to":"colorize_1","to_port":0},{"from":"colorize_0","from_port":0,"to":"blend_0","to_port":0},{"from":"colorize_1","from_port":0,"to":"blend_0","to_port":2},{"from":"perlin_0","from_port":0,"to":"normal_map_0","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"voronoi_0","from_port":2,"to":"blend_0","to_port":1},{"from":"voronoi_0","from_port":0,"to":"colorize_2","to_port":0},{"from":"blend_0","from_port":0,"to":"blend_1","to_port":0},{"from":"blend_1","from_port":0,"to":"Material","to_port":0},{"from":"colorize_2","from_port":0,"to":"blend_1","to_port":2},{"from":"uniform_0","from_port":0,"to":"blend_1","to_port":1},{"from":"colorize_1","from_port":0,"to":"Material","to_port":2}],"label":"Graph","name":"253","node_position":{"x":0,"y":0},"nodes":[{"name":"colorize_0","node_position":{"x":335,"y":-261.75},"parameters":{"gradient":{"points":[{"a":1,"b":0.15682,"g":0.734375,"pos":0.445455,"r":0.247062},{"a":1,"b":0.112522,"g":0.317708,"pos":0.863636,"r":0.144582}],"type":"Gradient"}},"type":"colorize"},{"name":"Material","node_position":{"x":996,"y":22},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":0,"metallic":0,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"normal_map_0","node_position":{"x":635,"y":142.25},"parameters":{"amount":0.8,"param0":11,"param1":0.25,"size":2},"type":"normal_map"},{"name":"colorize_1","node_position":{"x":524,"y":-26.75},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0.245455,"r":0},{"a":1,"b":1,"g":1,"pos":0.436364,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_2","node_position":{"x":413,"y":71.25},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0.118182,"r":0},{"a":1,"b":1,"g":1,"pos":0.172727,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"blend_1","node_position":{"x":826,"y":-119.75},"parameters":{"amount":1,"blend_type":0},"type":"blend"},{"name":"uniform_0","node_position":{"x":690,"y":-104},"parameters":{"color":{"a":1,"b":0,"g":0.984375,"r":1,"type":"Color"}},"type":"uniform"},{"name":"perlin_0","node_position":{"x":-25,"y":-27.75},"parameters":{"iterations":9,"persistence":0.8,"scale_x":6,"scale_y":6},"type":"perlin"},{"name":"voronoi_0","node_position":{"x":269,"y":-104.75},"parameters":{"intensity":1,"randomness":1,"scale_x":14,"scale_y":14},"type":"voronoi"},{"name":"blend_0","node_position":{"x":643,"y":-244.75},"parameters":{"amount":1,"blend_type":0},"type":"blend"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "perlin_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "voronoi_0",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "colorize_1",
"from_port": 0,
"to": "blend_0",
"to_port": 2
},
{
"from": "perlin_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "voronoi_0",
"from_port": 2,
"to": "blend_0",
"to_port": 1
},
{
"from": "voronoi_0",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "blend_1",
"to_port": 0
},
{
"from": "blend_1",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "blend_1",
"to_port": 2
},
{
"from": "uniform_0",
"from_port": 0,
"to": "blend_1",
"to_port": 1
},
{
"from": "colorize_1",
"from_port": 0,
"to": "Material",
"to_port": 2
}
],
"label": "Graph",
"name": "253",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "colorize_0",
"node_position": {
"x": 335,
"y": -261.75
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.15682,
"g": 0.734375,
"pos": 0.445455,
"r": 0.247062
},
{
"a": 1,
"b": 0.112522,
"g": 0.317708,
"pos": 0.863636,
"r": 0.144582
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "Material",
"node_position": {
"x": 996,
"y": 22
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 0,
"metallic": 0,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "normal_map_0",
"node_position": {
"x": 635,
"y": 142.25
},
"parameters": {
"amount": 0.8,
"param0": 11,
"param1": 0.25,
"size": 2
},
"type": "normal_map"
},
{
"name": "colorize_1",
"node_position": {
"x": 524,
"y": -26.75
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.245455,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.436364,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_2",
"node_position": {
"x": 413,
"y": 71.25
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.118182,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.172727,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_1",
"node_position": {
"x": 826,
"y": -119.75
},
"parameters": {
"amount": 1,
"blend_type": 0
},
"type": "blend"
},
{
"name": "uniform_0",
"node_position": {
"x": 690,
"y": -104
},
"parameters": {
"color": {
"a": 1,
"b": 0,
"g": 0.984375,
"r": 1,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "perlin_0",
"node_position": {
"x": -25,
"y": -27.75
},
"parameters": {
"iterations": 9,
"persistence": 0.8,
"scale_x": 6,
"scale_y": 6
},
"type": "perlin"
},
{
"name": "voronoi_0",
"node_position": {
"x": 269,
"y": -104.75
},
"parameters": {
"intensity": 1,
"randomness": 1,
"scale_x": 14,
"scale_y": 14
},
"type": "voronoi"
},
{
"name": "blend_0",
"node_position": {
"x": 643,
"y": -244.75
},
"parameters": {
"amount": 1,
"blend_type": 0
},
"type": "blend"
}
],
"parameters": {
},
"type": "graph"
}

File diff suppressed because one or more lines are too long

View File

@ -1 +1,348 @@
{"connections":[{"from":"perlin_0","from_port":0,"to":"blend_0","to_port":0},{"from":"blend_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"colorize_0","from_port":0,"to":"Material","to_port":0},{"from":"perlin_0","from_port":0,"to":"warp_0","to_port":1},{"from":"voronoi_0","from_port":0,"to":"warp_0","to_port":0},{"from":"warp_0","from_port":0,"to":"blend_0","to_port":1},{"from":"warp_0","from_port":0,"to":"colorize_1","to_port":0},{"from":"warp_0","from_port":0,"to":"colorize_2","to_port":0},{"from":"colorize_2","from_port":0,"to":"Material","to_port":2},{"from":"warp_0","from_port":0,"to":"normal_map_0","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"colorize_1","from_port":0,"to":"Material","to_port":3},{"from":"colorize_2","from_port":0,"to":"Material","to_port":1},{"from":"colorize_3","from_port":0,"to":"Material","to_port":5},{"from":"warp_0","from_port":0,"to":"colorize_3","to_port":0},{"from":"colorize_2","from_port":0,"to":"Material","to_port":6}],"label":"Graph","name":"408","node_position":{"x":0,"y":0},"nodes":[{"name":"Material","node_position":{"x":956,"y":271},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":0.45,"emission_energy":2,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"colorize_0","node_position":{"x":666,"y":27},"parameters":{"gradient":{"points":[{"a":1,"b":0.479167,"g":0.479167,"pos":0.045455,"r":0.479167},{"a":1,"b":0.875,"g":0.875,"pos":0.3,"r":0.875},{"a":1,"b":0.442708,"g":0.442708,"pos":0.518182,"r":0.442708},{"a":1,"b":0.069093,"g":0.069093,"pos":0.818182,"r":0.069093},{"a":1,"b":0.40625,"g":0.40625,"pos":1,"r":0.40625}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_2","node_position":{"x":653,"y":140.5},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":1,"pos":0.272727,"r":1},{"a":1,"b":0,"g":0,"pos":0.563636,"r":0}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_1","node_position":{"x":646,"y":223},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0.765625,"pos":0,"r":1},{"a":1,"b":0,"g":0,"pos":0.154545,"r":1},{"a":1,"b":0,"g":0,"pos":0.245455,"r":0}],"type":"Gradient"}},"type":"colorize"},{"name":"normal_map_0","node_position":{"x":658,"y":309.5},"parameters":{"amount":0.9,"param0":11,"param1":0.99,"size":2},"type":"normal_map"},{"name":"colorize_3","node_position":{"x":658,"y":404.25},"parameters":{"gradient":{"points":[{"a":1,"b":0.345455,"g":0.345455,"pos":0,"r":0.345455},{"a":1,"b":0,"g":0,"pos":1,"r":0}],"type":"Gradient"}},"type":"colorize"},{"name":"blend_0","node_position":{"x":475,"y":-30},"parameters":{"amount":0.83125,"blend_type":0},"type":"blend"},{"name":"warp_0","node_position":{"x":338,"y":196},"parameters":{"amount":0.3,"eps":0.045,"epsilon":0},"type":"warp"},{"name":"voronoi_0","node_position":{"x":130,"y":299},"parameters":{"intensity":0.55,"randomness":1,"scale_x":6,"scale_y":6},"type":"voronoi"},{"name":"perlin_0","node_position":{"x":190,"y":-14},"parameters":{"iterations":8,"persistence":0.75,"scale_x":4,"scale_y":4},"type":"perlin"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "perlin_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "perlin_0",
"from_port": 0,
"to": "warp_0",
"to_port": 1
},
{
"from": "voronoi_0",
"from_port": 0,
"to": "warp_0",
"to_port": 0
},
{
"from": "warp_0",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "warp_0",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "warp_0",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "warp_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "colorize_1",
"from_port": 0,
"to": "Material",
"to_port": 3
},
{
"from": "colorize_2",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "colorize_3",
"from_port": 0,
"to": "Material",
"to_port": 5
},
{
"from": "warp_0",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "Material",
"to_port": 6
}
],
"label": "Graph",
"name": "408",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 956,
"y": 271
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 0.45,
"emission_energy": 2,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "colorize_0",
"node_position": {
"x": 666,
"y": 27
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.479167,
"g": 0.479167,
"pos": 0.045455,
"r": 0.479167
},
{
"a": 1,
"b": 0.875,
"g": 0.875,
"pos": 0.3,
"r": 0.875
},
{
"a": 1,
"b": 0.442708,
"g": 0.442708,
"pos": 0.518182,
"r": 0.442708
},
{
"a": 1,
"b": 0.069093,
"g": 0.069093,
"pos": 0.818182,
"r": 0.069093
},
{
"a": 1,
"b": 0.40625,
"g": 0.40625,
"pos": 1,
"r": 0.40625
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_2",
"node_position": {
"x": 653,
"y": 140.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.272727,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.563636,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_1",
"node_position": {
"x": 646,
"y": 223
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0.765625,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.154545,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.245455,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "normal_map_0",
"node_position": {
"x": 658,
"y": 309.5
},
"parameters": {
"amount": 0.9,
"param0": 11,
"param1": 0.99,
"size": 2
},
"type": "normal_map"
},
{
"name": "colorize_3",
"node_position": {
"x": 658,
"y": 404.25
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.345455,
"g": 0.345455,
"pos": 0,
"r": 0.345455
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 1,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_0",
"node_position": {
"x": 475,
"y": -30
},
"parameters": {
"amount": 0.83125,
"blend_type": 0
},
"type": "blend"
},
{
"name": "warp_0",
"node_position": {
"x": 338,
"y": 196
},
"parameters": {
"amount": 0.3,
"eps": 0.045,
"epsilon": 0
},
"type": "warp"
},
{
"name": "voronoi_0",
"node_position": {
"x": 130,
"y": 299
},
"parameters": {
"intensity": 0.55,
"randomness": 1,
"scale_x": 6,
"scale_y": 6
},
"type": "voronoi"
},
{
"name": "perlin_0",
"node_position": {
"x": 190,
"y": -14
},
"parameters": {
"iterations": 8,
"persistence": 0.75,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
}
],
"parameters": {
},
"type": "graph"
}

File diff suppressed because one or more lines are too long

View File

@ -1 +1,173 @@
{"connections":[{"from":"custom_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"colorize_0","from_port":0,"to":"Material","to_port":3}],"label":"Graph","name":"362","node_position":{"x":0,"y":0},"nodes":[{"name":"Material","node_position":{"x":200,"y":0},"parameters":{"albedo_color":{"a":1,"b":0,"g":0,"r":0,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"custom_0","node_position":{"x":-211,"y":208},"parameters":{"contrast":10,"scale":1,"x":0,"y":0},"shader_model":{"global":"float mandelbrot(vec2 uv) {\n float di = 1.0;\n vec2 z = vec2(0.0);\n float m2 = 0.0;\n vec2 dz = vec2(0.0);\n for( int i=0; i<200; i++ )\n {\n if (m2>1024.0 ) {\n\t\t\tdi=0.0;\n\t\t\tbreak;\n\t\t}\n\n\t\t// Z' -> 2·Z·Z' + 1\n dz = 2.0*vec2(z.x*dz.x-z.y*dz.y, z.x*dz.y + z.y*dz.x) + vec2(1.0,0.0);\n\t\t\t\n // Z -> Z² + c\t\t\t\n z = vec2( z.x*z.x - z.y*z.y, 2.0*z.x*z.y ) + uv;\n\t\t\t\n m2 = dot(z,z);\n }\n\n // distance\t\n\t// d(c) = |Z|·log|Z|/|Z'|\n\tfloat d = 0.5*sqrt(dot(z,z)/dot(dz,dz))*log(dot(z,z));\n if( di>0.5 ) d=0.0;\n\treturn d;\n}","instance":"float $(name)_xyz(vec2 uv) {\n\treturn mandelbrot(uv);\n}","name":"Mandelbrot","outputs":[{"f":"clamp($(name)_xyz(vec2($(x), $(y))+$(scale)*(2.0*$(uv)-1.0))*$(contrast), 0.0, 1.0)","type":"f"}],"parameters":[{"label":"Scale","max":3,"min":0,"name":"scale","step":0.0001,"type":"float","widget":"spinbox"},{"label":"X","max":2,"min":-2,"name":"x","step":0.0001,"type":"float","widget":"spinbox"},{"label":"Y","max":2,"min":-2,"name":"y","step":0.0001,"type":"float","widget":"spinbox"},{"label":"Contrast","max":10000,"min":1,"name":"contrast","step":0.0001,"type":"float","widget":"spinbox"}]},"type":"shader"},{"name":"colorize_0","node_position":{"x":-99.75,"y":-7.25},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0,"r":1},{"a":1,"b":0,"g":0.96875,"pos":0.2,"r":1},{"a":1,"b":0.0625,"g":1,"pos":0.4,"r":0},{"a":1,"b":1,"g":1,"pos":0.618182,"r":0},{"a":1,"b":0.965909,"g":0,"pos":0.818182,"r":0},{"a":1,"b":1,"g":0,"pos":1,"r":0.9375}],"type":"Gradient"}},"type":"colorize"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "custom_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "Material",
"to_port": 3
}
],
"label": "Graph",
"name": "362",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 200,
"y": 0
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 0,
"g": 0,
"r": 0,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "custom_0",
"node_position": {
"x": -211,
"y": 208
},
"parameters": {
"contrast": 10,
"scale": 1,
"x": 0,
"y": 0
},
"shader_model": {
"global": "float mandelbrot(vec2 uv) {\n float di = 1.0;\n vec2 z = vec2(0.0);\n float m2 = 0.0;\n vec2 dz = vec2(0.0);\n for( int i=0; i<200; i++ )\n {\n if (m2>1024.0 ) {\n\t\t\tdi=0.0;\n\t\t\tbreak;\n\t\t}\n\n\t\t// Z' -> 2·Z·Z' + 1\n dz = 2.0*vec2(z.x*dz.x-z.y*dz.y, z.x*dz.y + z.y*dz.x) + vec2(1.0,0.0);\n\t\t\t\n // Z -> Z² + c\t\t\t\n z = vec2( z.x*z.x - z.y*z.y, 2.0*z.x*z.y ) + uv;\n\t\t\t\n m2 = dot(z,z);\n }\n\n // distance\t\n\t// d(c) = |Z|·log|Z|/|Z'|\n\tfloat d = 0.5*sqrt(dot(z,z)/dot(dz,dz))*log(dot(z,z));\n if( di>0.5 ) d=0.0;\n\treturn d;\n}",
"instance": "float $(name)_xyz(vec2 uv) {\n\treturn mandelbrot(uv);\n}",
"name": "Mandelbrot",
"outputs": [
{
"f": "clamp($(name)_xyz(vec2($(x), $(y))+$(scale)*(2.0*$(uv)-1.0))*$(contrast), 0.0, 1.0)",
"type": "f"
}
],
"parameters": [
{
"label": "Scale",
"max": 3,
"min": 0,
"name": "scale",
"step": 0.0001,
"type": "float",
"widget": "spinbox"
},
{
"label": "X",
"max": 2,
"min": -2,
"name": "x",
"step": 0.0001,
"type": "float",
"widget": "spinbox"
},
{
"label": "Y",
"max": 2,
"min": -2,
"name": "y",
"step": 0.0001,
"type": "float",
"widget": "spinbox"
},
{
"label": "Contrast",
"max": 10000,
"min": 1,
"name": "contrast",
"step": 0.0001,
"type": "float",
"widget": "spinbox"
}
]
},
"type": "shader"
},
{
"name": "colorize_0",
"node_position": {
"x": -99.75,
"y": -7.25
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0.96875,
"pos": 0.2,
"r": 1
},
{
"a": 1,
"b": 0.0625,
"g": 1,
"pos": 0.4,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.618182,
"r": 0
},
{
"a": 1,
"b": 0.965909,
"g": 0,
"pos": 0.818182,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 0,
"pos": 1,
"r": 0.9375
}
],
"type": "Gradient"
}
},
"type": "colorize"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,504 @@
{"connections":[{"from":"perlin_0","from_port":0,"to":"warp_0","to_port":1},{"from":"warp_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"pattern_1","from_port":0,"to":"warp_1","to_port":0},{"from":"perlin_0","from_port":0,"to":"warp_1","to_port":1},{"from":"warp_1","from_port":0,"to":"colorize_1","to_port":0},{"from":"colorize_0","from_port":0,"to":"blend_0","to_port":0},{"from":"colorize_1","from_port":0,"to":"blend_0","to_port":1},{"from":"blend_0","from_port":0,"to":"colorize_2","to_port":0},{"from":"colorize_2","from_port":0,"to":"Material","to_port":0},{"from":"colorize_3","from_port":0,"to":"Material","to_port":2},{"from":"uniform_0","from_port":0,"to":"Material","to_port":1},{"from":"blend_1","from_port":0,"to":"colorize_3","to_port":0},{"from":"blend_0","from_port":0,"to":"blend_1","to_port":1},{"from":"perlin_1","from_port":0,"to":"colorize_4","to_port":0},{"from":"colorize_4","from_port":0,"to":"blend_1","to_port":0},{"from":"voronoi_0","from_port":0,"to":"warp_0","to_port":0}],"label":"Graph","name":"297","node_position":{"x":0,"y":0},"nodes":[{"name":"pattern_1","node_position":{"x":15,"y":492},"parameters":{"mix":0,"x_scale":8,"x_wave":0,"y_scale":0,"y_wave":4},"type":"pattern"},{"name":"colorize_1","node_position":{"x":349,"y":386},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":1,"pos":0.035714,"r":1},{"a":1,"b":0,"g":0,"pos":0.142857,"r":0},{"a":1,"b":1,"g":1,"pos":0.258929,"r":1},{"a":1,"b":0,"g":0,"pos":0.535714,"r":0},{"a":1,"b":1,"g":1,"pos":0.723214,"r":1},{"a":1,"b":0,"g":0,"pos":0.848214,"r":0},{"a":1,"b":1,"g":1,"pos":0.982143,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"warp_1","node_position":{"x":257,"y":418},"parameters":{"amount":1,"eps":0.045,"epsilon":0},"type":"warp"},{"name":"uniform_0","node_position":{"x":484,"y":126},"parameters":{"color":{"a":1,"b":0,"g":0,"r":0,"type":"Color"}},"type":"uniform"},{"name":"blend_1","node_position":{"x":249,"y":45},"parameters":{"amount":0.9,"blend_type":0},"type":"blend"},{"name":"Material","node_position":{"x":676,"y":101},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"voronoi_0","node_position":{"x":8,"y":178},"parameters":{"intensity":1,"randomness":1,"scale_x":8,"scale_y":4},"type":"voronoi"},{"name":"colorize_0","node_position":{"x":349,"y":309},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":1,"pos":0.017857,"r":1},{"a":1,"b":0,"g":0,"pos":0.125,"r":0},{"a":1,"b":1,"g":1,"pos":0.241071,"r":1},{"a":1,"b":1,"g":1,"pos":0.455357,"r":1},{"a":1,"b":0,"g":0,"pos":0.616071,"r":0},{"a":1,"b":1,"g":1,"pos":0.723214,"r":1},{"a":1,"b":1,"g":1,"pos":0.857143,"r":1},{"a":1,"b":0,"g":0,"pos":0.946429,"r":0},{"a":1,"b":1,"g":1,"pos":0.982143,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"perlin_1","node_position":{"x":-264,"y":25},"parameters":{"iterations":6,"persistence":1,"scale_x":8,"scale_y":8},"type":"perlin"},{"name":"colorize_4","node_position":{"x":24,"y":81},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0.190909,"r":0},{"a":1,"b":1,"g":1,"pos":0.463636,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"perlin_0","node_position":{"x":15,"y":328},"parameters":{"iterations":4,"persistence":0.5,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"warp_0","node_position":{"x":246,"y":306},"parameters":{"amount":0.8,"eps":0.045,"epsilon":0},"type":"warp"},{"name":"colorize_3","node_position":{"x":272,"y":171},"parameters":{"gradient":{"points":[{"a":1,"b":0.484375,"g":0.484375,"pos":0,"r":1},{"a":1,"b":0.744792,"g":0.744792,"pos":0.390909,"r":0.744792},{"a":1,"b":0.4375,"g":0.4375,"pos":1,"r":0.4375}],"type":"Gradient"}},"type":"colorize"},{"name":"blend_0","node_position":{"x":544,"y":339},"parameters":{"amount":0.65,"blend_type":0},"type":"blend"},{"name":"colorize_2","node_position":{"x":765,"y":404},"parameters":{"gradient":{"points":[{"a":1,"b":0.791667,"g":0.908854,"pos":0,"r":1},{"a":1,"b":0.84375,"g":0.931641,"pos":0.236364,"r":1},{"a":1,"b":1,"g":1,"pos":1,"r":1}],"type":"Gradient"}},"type":"colorize"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "perlin_0",
"from_port": 0,
"to": "warp_0",
"to_port": 1
},
{
"from": "warp_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "pattern_1",
"from_port": 0,
"to": "warp_1",
"to_port": 0
},
{
"from": "perlin_0",
"from_port": 0,
"to": "warp_1",
"to_port": 1
},
{
"from": "warp_1",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "colorize_1",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "blend_0",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "uniform_0",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "blend_1",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "blend_1",
"to_port": 1
},
{
"from": "perlin_1",
"from_port": 0,
"to": "colorize_4",
"to_port": 0
},
{
"from": "colorize_4",
"from_port": 0,
"to": "blend_1",
"to_port": 0
},
{
"from": "voronoi_0",
"from_port": 0,
"to": "warp_0",
"to_port": 0
}
],
"label": "Graph",
"name": "297",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "pattern_1",
"node_position": {
"x": 15,
"y": 492
},
"parameters": {
"mix": 0,
"x_scale": 8,
"x_wave": 0,
"y_scale": 0,
"y_wave": 4
},
"type": "pattern"
},
{
"name": "colorize_1",
"node_position": {
"x": 349,
"y": 386
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.035714,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.142857,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.258929,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.535714,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.723214,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.848214,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.982143,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "warp_1",
"node_position": {
"x": 257,
"y": 418
},
"parameters": {
"amount": 1,
"eps": 0.045,
"epsilon": 0
},
"type": "warp"
},
{
"name": "uniform_0",
"node_position": {
"x": 484,
"y": 126
},
"parameters": {
"color": {
"a": 1,
"b": 0,
"g": 0,
"r": 0,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "blend_1",
"node_position": {
"x": 249,
"y": 45
},
"parameters": {
"amount": 0.9,
"blend_type": 0
},
"type": "blend"
},
{
"name": "Material",
"node_position": {
"x": 676,
"y": 101
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "voronoi_0",
"node_position": {
"x": 8,
"y": 178
},
"parameters": {
"intensity": 1,
"randomness": 1,
"scale_x": 8,
"scale_y": 4
},
"type": "voronoi"
},
{
"name": "colorize_0",
"node_position": {
"x": 349,
"y": 309
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.017857,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.125,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.241071,
"r": 1
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.455357,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.616071,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.723214,
"r": 1
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.857143,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.946429,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.982143,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "perlin_1",
"node_position": {
"x": -264,
"y": 25
},
"parameters": {
"iterations": 6,
"persistence": 1,
"scale_x": 8,
"scale_y": 8
},
"type": "perlin"
},
{
"name": "colorize_4",
"node_position": {
"x": 24,
"y": 81
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.190909,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.463636,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "perlin_0",
"node_position": {
"x": 15,
"y": 328
},
"parameters": {
"iterations": 4,
"persistence": 0.5,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "warp_0",
"node_position": {
"x": 246,
"y": 306
},
"parameters": {
"amount": 0.8,
"eps": 0.045,
"epsilon": 0
},
"type": "warp"
},
{
"name": "colorize_3",
"node_position": {
"x": 272,
"y": 171
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.484375,
"g": 0.484375,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0.744792,
"g": 0.744792,
"pos": 0.390909,
"r": 0.744792
},
{
"a": 1,
"b": 0.4375,
"g": 0.4375,
"pos": 1,
"r": 0.4375
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_0",
"node_position": {
"x": 544,
"y": 339
},
"parameters": {
"amount": 0.65,
"blend_type": 0
},
"type": "blend"
},
{
"name": "colorize_2",
"node_position": {
"x": 765,
"y": 404
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.791667,
"g": 0.908854,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0.84375,
"g": 0.931641,
"pos": 0.236364,
"r": 1
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 1,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
}
],
"parameters": {
},
"type": "graph"
}

File diff suppressed because one or more lines are too long

View File

@ -1 +1,184 @@
{"connections":[{"from":"pattern_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"transform_2","from_port":0,"to":"blend_0","to_port":0},{"from":"pattern_1","from_port":0,"to":"blend_0","to_port":2},{"from":"blend_0","from_port":0,"to":"normal_map_0","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"colorize_0","from_port":0,"to":"transform_2","to_port":0},{"from":"colorize_0","from_port":0,"to":"blend_0","to_port":1}],"label":"Graph","name":"327","node_position":{"x":0,"y":0},"nodes":[{"name":"pattern_1","node_position":{"x":78,"y":382},"parameters":{"mix":4,"x_scale":4,"x_wave":2,"y_scale":4,"y_wave":2},"type":"pattern"},{"name":"colorize_0","node_position":{"x":148,"y":258},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":1,"pos":0.181818,"r":1},{"a":1,"b":0,"g":0,"pos":0.436364,"r":0}],"type":"Gradient"}},"type":"colorize"},{"name":"pattern_0","node_position":{"x":-127,"y":256},"parameters":{"mix":0,"x_scale":40,"x_wave":1,"y_scale":8,"y_wave":1},"type":"pattern"},{"name":"transform_2","node_position":{"x":372,"y":37},"parameters":{"repeat":true,"rotate":90,"scale_x":1,"scale_y":1,"translate_x":0,"translate_y":0},"type":"transform"},{"name":"Material","node_position":{"x":930,"y":199},"parameters":{"albedo_color":{"a":1,"b":0.953125,"g":0.834013,"r":0.822815,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":0.75,"size":11},"type":"material"},{"name":"normal_map_0","node_position":{"x":668,"y":268},"parameters":{"amount":0.5,"param0":11,"param1":0.99,"size":2},"type":"normal_map"},{"name":"blend_0","node_position":{"x":381,"y":252},"parameters":{"amount":1,"blend_type":0},"type":"blend"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "pattern_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "transform_2",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "pattern_1",
"from_port": 0,
"to": "blend_0",
"to_port": 2
},
{
"from": "blend_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "colorize_0",
"from_port": 0,
"to": "transform_2",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_0",
"to_port": 1
}
],
"label": "Graph",
"name": "327",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "pattern_1",
"node_position": {
"x": 78,
"y": 382
},
"parameters": {
"mix": 4,
"x_scale": 4,
"x_wave": 2,
"y_scale": 4,
"y_wave": 2
},
"type": "pattern"
},
{
"name": "colorize_0",
"node_position": {
"x": 148,
"y": 258
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.181818,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.436364,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "pattern_0",
"node_position": {
"x": -127,
"y": 256
},
"parameters": {
"mix": 0,
"x_scale": 40,
"x_wave": 1,
"y_scale": 8,
"y_wave": 1
},
"type": "pattern"
},
{
"name": "transform_2",
"node_position": {
"x": 372,
"y": 37
},
"parameters": {
"repeat": true,
"rotate": 90,
"scale_x": 1,
"scale_y": 1,
"translate_x": 0,
"translate_y": 0
},
"type": "transform"
},
{
"name": "Material",
"node_position": {
"x": 930,
"y": 199
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 0.953125,
"g": 0.834013,
"r": 0.822815,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 0.75,
"size": 11
},
"type": "material"
},
{
"name": "normal_map_0",
"node_position": {
"x": 668,
"y": 268
},
"parameters": {
"amount": 0.5,
"param0": 11,
"param1": 0.99,
"size": 2
},
"type": "normal_map"
},
{
"name": "blend_0",
"node_position": {
"x": 381,
"y": 252
},
"parameters": {
"amount": 1,
"blend_type": 0
},
"type": "blend"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,260 @@
{"connections":[{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"pattern_1","from_port":0,"to":"colorize_1","to_port":0},{"from":"colorize_0","from_port":0,"to":"blend_0","to_port":1},{"from":"colorize_1","from_port":0,"to":"blend_0","to_port":0},{"from":"blend_0","from_port":0,"to":"normal_map_0","to_port":0},{"from":"uniform_0","from_port":0,"to":"Material","to_port":0},{"from":"uniform_1","from_port":0,"to":"Material","to_port":1},{"from":"uniform_2","from_port":0,"to":"Material","to_port":2},{"from":"pattern_0","from_port":0,"to":"colorize_0","to_port":0}],"label":"Graph","name":"342","node_position":{"x":0,"y":0},"nodes":[{"name":"colorize_1","node_position":{"x":-16,"y":97},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0.236364,"r":0},{"a":1,"b":1,"g":1,"pos":0.254545,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"Material","node_position":{"x":508,"y":116},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"normal_map_0","node_position":{"x":257,"y":286},"parameters":{"amount":0.5,"param0":11,"param1":0.99,"size":2},"type":"normal_map"},{"name":"uniform_0","node_position":{"x":330,"y":33},"parameters":{"color":{"a":1,"b":0.855469,"g":0.736813,"r":0.51796,"type":"Color"}},"type":"uniform"},{"name":"uniform_1","node_position":{"x":333,"y":85},"parameters":{"color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"}},"type":"uniform"},{"name":"uniform_2","node_position":{"x":336,"y":138},"parameters":{"color":{"a":1,"b":0.632813,"g":0.632813,"r":0.632813,"type":"Color"}},"type":"uniform"},{"name":"pattern_1","node_position":{"x":-46,"y":-2},"parameters":{"mix":3,"x_scale":1,"x_wave":1,"y_scale":1,"y_wave":1},"type":"pattern"},{"name":"pattern_0","node_position":{"x":-32,"y":191},"parameters":{"mix":0,"x_scale":16,"x_wave":0,"y_scale":16,"y_wave":0},"type":"pattern"},{"name":"blend_0","node_position":{"x":254,"y":196},"parameters":{"amount":1,"blend_type":9},"type":"blend"},{"name":"colorize_0","node_position":{"x":-15,"y":289},"parameters":{"gradient":{"points":[{"a":1,"b":0.546875,"g":0.546875,"pos":0.845455,"r":0.546875},{"a":1,"b":0,"g":0,"pos":1,"r":0}],"type":"Gradient"}},"type":"colorize"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "pattern_1",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "colorize_1",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
},
{
"from": "uniform_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "uniform_1",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "uniform_2",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "pattern_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
}
],
"label": "Graph",
"name": "342",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "colorize_1",
"node_position": {
"x": -16,
"y": 97
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.236364,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.254545,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "Material",
"node_position": {
"x": 508,
"y": 116
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "normal_map_0",
"node_position": {
"x": 257,
"y": 286
},
"parameters": {
"amount": 0.5,
"param0": 11,
"param1": 0.99,
"size": 2
},
"type": "normal_map"
},
{
"name": "uniform_0",
"node_position": {
"x": 330,
"y": 33
},
"parameters": {
"color": {
"a": 1,
"b": 0.855469,
"g": 0.736813,
"r": 0.51796,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "uniform_1",
"node_position": {
"x": 333,
"y": 85
},
"parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "uniform_2",
"node_position": {
"x": 336,
"y": 138
},
"parameters": {
"color": {
"a": 1,
"b": 0.632813,
"g": 0.632813,
"r": 0.632813,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "pattern_1",
"node_position": {
"x": -46,
"y": -2
},
"parameters": {
"mix": 3,
"x_scale": 1,
"x_wave": 1,
"y_scale": 1,
"y_wave": 1
},
"type": "pattern"
},
{
"name": "pattern_0",
"node_position": {
"x": -32,
"y": 191
},
"parameters": {
"mix": 0,
"x_scale": 16,
"x_wave": 0,
"y_scale": 16,
"y_wave": 0
},
"type": "pattern"
},
{
"name": "blend_0",
"node_position": {
"x": 254,
"y": 196
},
"parameters": {
"amount": 1,
"blend_type": 9
},
"type": "blend"
},
{
"name": "colorize_0",
"node_position": {
"x": -15,
"y": 289
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.546875,
"g": 0.546875,
"pos": 0.845455,
"r": 0.546875
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 1,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,245 @@
{"connections":[{"from":"blend_0","from_port":0,"to":"Material","to_port":0},{"from":"voronoi_0","from_port":2,"to":"blend_0","to_port":1},{"from":"voronoi_0","from_port":1,"to":"colorize_0","to_port":0},{"from":"colorize_0","from_port":0,"to":"blend_0","to_port":0},{"from":"voronoi_0","from_port":1,"to":"colorize_1","to_port":0},{"from":"colorize_1","from_port":0,"to":"normal_map_0","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"uniform_0","from_port":0,"to":"Material","to_port":1},{"from":"voronoi_0","from_port":1,"to":"colorize_2","to_port":0},{"from":"colorize_2","from_port":0,"to":"Material","to_port":2}],"label":"Graph","name":"448","node_position":{"x":0,"y":0},"nodes":[{"name":"voronoi_0","node_position":{"x":-543.5,"y":-11.5},"parameters":{"intensity":1,"randomness":1,"scale_x":32,"scale_y":32},"type":"voronoi"},{"name":"normal_map_0","node_position":{"x":-260.5,"y":128.5},"parameters":{"amount":0.5,"param0":11,"param1":0.99,"size":5},"type":"normal_map"},{"name":"Material","node_position":{"x":30,"y":-44},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"colorize_1","node_position":{"x":-490.5,"y":135.5},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0.054546,"r":0},{"a":1,"b":1,"g":1,"pos":0.127273,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_0","node_position":{"x":-317.5,"y":-169.5},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":1,"pos":0.063636,"r":1},{"a":1,"b":0,"g":0,"pos":0.072727,"r":0}],"type":"Gradient"}},"type":"colorize"},{"name":"uniform_0","node_position":{"x":-127.5,"y":-3.5},"parameters":{"color":{"a":1,"b":0.109375,"g":0.109375,"r":0.109375,"type":"Color"}},"type":"uniform"},{"name":"colorize_2","node_position":{"x":-306.5,"y":39.5},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":1,"pos":0,"r":1},{"a":1,"b":0.109375,"g":0.109375,"pos":0.236364,"r":0.109375}],"type":"Gradient"}},"type":"colorize"},{"name":"blend_0","node_position":{"x":-294.5,"y":-94.5},"parameters":{"amount":1,"blend_type":3},"type":"blend"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "blend_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "voronoi_0",
"from_port": 2,
"to": "blend_0",
"to_port": 1
},
{
"from": "voronoi_0",
"from_port": 1,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "voronoi_0",
"from_port": 1,
"to": "colorize_1",
"to_port": 0
},
{
"from": "colorize_1",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "uniform_0",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "voronoi_0",
"from_port": 1,
"to": "colorize_2",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "Material",
"to_port": 2
}
],
"label": "Graph",
"name": "448",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "voronoi_0",
"node_position": {
"x": -543.5,
"y": -11.5
},
"parameters": {
"intensity": 1,
"randomness": 1,
"scale_x": 32,
"scale_y": 32
},
"type": "voronoi"
},
{
"name": "normal_map_0",
"node_position": {
"x": -260.5,
"y": 128.5
},
"parameters": {
"amount": 0.5,
"param0": 11,
"param1": 0.99,
"size": 5
},
"type": "normal_map"
},
{
"name": "Material",
"node_position": {
"x": 30,
"y": -44
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "colorize_1",
"node_position": {
"x": -490.5,
"y": 135.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.054546,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.127273,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_0",
"node_position": {
"x": -317.5,
"y": -169.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.063636,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.072727,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "uniform_0",
"node_position": {
"x": -127.5,
"y": -3.5
},
"parameters": {
"color": {
"a": 1,
"b": 0.109375,
"g": 0.109375,
"r": 0.109375,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "colorize_2",
"node_position": {
"x": -306.5,
"y": 39.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0.109375,
"g": 0.109375,
"pos": 0.236364,
"r": 0.109375
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_0",
"node_position": {
"x": -294.5,
"y": -94.5
},
"parameters": {
"amount": 1,
"blend_type": 3
},
"type": "blend"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,342 @@
{"connections":[{"from":"pattern_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"pattern_1","from_port":0,"to":"colorize_1","to_port":0},{"from":"colorize_0","from_port":0,"to":"blend_0","to_port":0},{"from":"colorize_1","from_port":0,"to":"blend_0","to_port":1},{"from":"blend_0","from_port":0,"to":"Material","to_port":0},{"from":"shape_0","from_port":0,"to":"colorize_2","to_port":0},{"from":"colorize_2","from_port":0,"to":"transform_0","to_port":0},{"from":"perlin_1","from_port":0,"to":"transform_0","to_port":1},{"from":"colorize_3","from_port":0,"to":"blend_1","to_port":0},{"from":"transform_0","from_port":0,"to":"blend_1","to_port":1},{"from":"perlin_1","from_port":0,"to":"colorize_3","to_port":0}],"label":"Graph","name":"466","node_position":{"x":0,"y":0},"nodes":[{"name":"Material","node_position":{"x":479,"y":-5},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"pattern_1","node_position":{"x":-295.25,"y":-24.25},"parameters":{"mix":3,"x_scale":8,"x_wave":1,"y_scale":8,"y_wave":1},"type":"pattern"},{"name":"pattern_0","node_position":{"x":-303,"y":-157},"parameters":{"mix":3,"x_scale":4,"x_wave":4,"y_scale":32,"y_wave":1},"type":"pattern"},{"name":"colorize_1","node_position":{"x":-13.25,"y":-31.25},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":0.752604,"pos":0.036364,"r":0.583333},{"a":1,"b":1,"g":1,"pos":0.054545,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_0","node_position":{"x":-34,"y":-153},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":0.752604,"pos":0.054545,"r":0.583333},{"a":1,"b":1,"g":1,"pos":0.081818,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"blend_0","node_position":{"x":231,"y":5.5},"parameters":{"amount":1,"blend_type":10},"type":"blend"},{"name":"perlin_0","node_position":{"x":-27.999969,"y":111},"parameters":{"iterations":3,"persistence":0.5,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"shape_0","node_position":{"x":-300.999969,"y":281},"parameters":{"edge":0.465753,"radius":0.452055,"shape":1,"sides":4},"type":"shape"},{"name":"colorize_2","node_position":{"x":-137.999969,"y":291},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0.3,"r":0},{"a":1,"b":1,"g":1,"pos":0.509091,"r":1},{"a":1,"b":0,"g":0,"pos":0.754545,"r":0}],"type":"Gradient"}},"type":"colorize"},{"name":"perlin_1","node_position":{"x":-267.999969,"y":487},"parameters":{"iterations":6,"persistence":0.5,"scale_x":16,"scale_y":16},"type":"perlin"},{"name":"blend_1","node_position":{"x":312.000031,"y":380.5},"parameters":{"amount":1,"blend_type":0},"type":"blend"},{"name":"colorize_3","node_position":{"x":48.000031,"y":499.5},"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":"transform_0","node_position":{"x":66.000031,"y":250.5},"parameters":{"repeat":true,"rotate":0,"scale_x":1,"scale_y":1,"translate_x":0.01,"translate_y":0},"type":"transform"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "pattern_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "pattern_1",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "colorize_1",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "blend_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "shape_0",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "transform_0",
"to_port": 0
},
{
"from": "perlin_1",
"from_port": 0,
"to": "transform_0",
"to_port": 1
},
{
"from": "colorize_3",
"from_port": 0,
"to": "blend_1",
"to_port": 0
},
{
"from": "transform_0",
"from_port": 0,
"to": "blend_1",
"to_port": 1
},
{
"from": "perlin_1",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
}
],
"label": "Graph",
"name": "466",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 479,
"y": -5
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "pattern_1",
"node_position": {
"x": -295.25,
"y": -24.25
},
"parameters": {
"mix": 3,
"x_scale": 8,
"x_wave": 1,
"y_scale": 8,
"y_wave": 1
},
"type": "pattern"
},
{
"name": "pattern_0",
"node_position": {
"x": -303,
"y": -157
},
"parameters": {
"mix": 3,
"x_scale": 4,
"x_wave": 4,
"y_scale": 32,
"y_wave": 1
},
"type": "pattern"
},
{
"name": "colorize_1",
"node_position": {
"x": -13.25,
"y": -31.25
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 0.752604,
"pos": 0.036364,
"r": 0.583333
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.054545,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_0",
"node_position": {
"x": -34,
"y": -153
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 0.752604,
"pos": 0.054545,
"r": 0.583333
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.081818,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend_0",
"node_position": {
"x": 231,
"y": 5.5
},
"parameters": {
"amount": 1,
"blend_type": 10
},
"type": "blend"
},
{
"name": "perlin_0",
"node_position": {
"x": -27.999969,
"y": 111
},
"parameters": {
"iterations": 3,
"persistence": 0.5,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "shape_0",
"node_position": {
"x": -300.999969,
"y": 281
},
"parameters": {
"edge": 0.465753,
"radius": 0.452055,
"shape": 1,
"sides": 4
},
"type": "shape"
},
{
"name": "colorize_2",
"node_position": {
"x": -137.999969,
"y": 291
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.3,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.509091,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.754545,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "perlin_1",
"node_position": {
"x": -267.999969,
"y": 487
},
"parameters": {
"iterations": 6,
"persistence": 0.5,
"scale_x": 16,
"scale_y": 16
},
"type": "perlin"
},
{
"name": "blend_1",
"node_position": {
"x": 312.000031,
"y": 380.5
},
"parameters": {
"amount": 1,
"blend_type": 0
},
"type": "blend"
},
{
"name": "colorize_3",
"node_position": {
"x": 48.000031,
"y": 499.5
},
"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": "transform_0",
"node_position": {
"x": 66.000031,
"y": 250.5
},
"parameters": {
"repeat": true,
"rotate": 0,
"scale_x": 1,
"scale_y": 1,
"translate_x": 0.01,
"translate_y": 0
},
"type": "transform"
}
],
"parameters": {
},
"type": "graph"
}

File diff suppressed because one or more lines are too long

View File

@ -1 +1,328 @@
{"connections":[{"from":"colorize_2","from_port":0,"to":"colorize","to_port":0},{"from":"colorize_2","from_port":0,"to":"colorize_3","to_port":0},{"from":"colorize_3","from_port":0,"to":"Material","to_port":6},{"from":"colorize_2","from_port":0,"to":"Material","to_port":2},{"from":"colorize","from_port":0,"to":"Material","to_port":0},{"from":"colorize_2","from_port":0,"to":"normal_map","to_port":0},{"from":"normal_map","from_port":0,"to":"Material","to_port":4},{"from":"pattern","from_port":0,"to":"colorize_4","to_port":0},{"from":"colorize_4","from_port":0,"to":"blend","to_port":0},{"from":"perlin","from_port":0,"to":"blend","to_port":1},{"from":"blend","from_port":0,"to":"colorize_2","to_port":0}],"label":"Graph","name":"39","node_position":{"x":0,"y":0},"nodes":[{"name":"Material","node_position":{"x":653,"y":157},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":0.6,"emission_energy":1,"metallic":0.05,"normal_scale":1,"roughness":0.75,"size":11},"type":"material"},{"name":"perlin","node_position":{"x":-334.5,"y":-300.5},"parameters":{"iterations":6,"persistence":0.5,"scale_x":8,"scale_y":8},"type":"perlin"},{"name":"colorize","node_position":{"x":-315.5,"y":-87.5},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":0.1875,"pos":0.081818,"r":0},{"a":1,"b":0.447917,"g":0.827474,"pos":0.109091,"r":1},{"a":1,"b":0,"g":0.489583,"pos":0.227273,"r":0.107096},{"a":1,"b":0,"g":0.19043,"pos":0.554545,"r":0.338542},{"a":1,"b":0,"g":0.172852,"pos":0.927273,"r":0.307292},{"a":1,"b":1,"g":1,"pos":1,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_2","node_position":{"x":-314.5,"y":-156.5},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0.5,"r":0},{"a":1,"b":1,"g":1,"pos":0.836364,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_3","node_position":{"x":-316.5,"y":-21.5},"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":"normal_map","node_position":{"x":-20.5,"y":273.5},"parameters":{"amount":0.5,"param0":11,"param1":0.99,"size":4},"type":"normal_map"},{"name":"pattern","node_position":{"x":-343.5,"y":-582.25},"parameters":{"mix":0,"x_scale":4,"x_wave":4,"y_scale":1,"y_wave":0},"type":"pattern"},{"name":"colorize_4","node_position":{"x":-300.5,"y":-473.25},"parameters":{"gradient":{"points":[{"a":1,"b":1,"g":1,"pos":0,"r":1},{"a":1,"b":0.75,"g":0.75,"pos":0.045455,"r":0.75},{"a":1,"b":0,"g":0,"pos":0.363636,"r":0}],"type":"Gradient"}},"type":"colorize"},{"name":"blend","node_position":{"x":-300.5,"y":-399.25},"parameters":{"amount":0.819444,"blend_type":3},"type":"blend"},{"name":"comment","node_position":{"x":-544.5,"y":-395.194458},"parameters":{"size":4},"size":{"x":190,"y":67},"text":"Best viewed on Sphere mesh","type":"comment"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "colorize_2",
"from_port": 0,
"to": "colorize",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "Material",
"to_port": 6
},
{
"from": "colorize_2",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "colorize",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "normal_map",
"to_port": 0
},
{
"from": "normal_map",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "pattern",
"from_port": 0,
"to": "colorize_4",
"to_port": 0
},
{
"from": "colorize_4",
"from_port": 0,
"to": "blend",
"to_port": 0
},
{
"from": "perlin",
"from_port": 0,
"to": "blend",
"to_port": 1
},
{
"from": "blend",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
}
],
"label": "Graph",
"name": "39",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 653,
"y": 157
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 0.6,
"emission_energy": 1,
"metallic": 0.05,
"normal_scale": 1,
"roughness": 0.75,
"size": 11
},
"type": "material"
},
{
"name": "perlin",
"node_position": {
"x": -334.5,
"y": -300.5
},
"parameters": {
"iterations": 6,
"persistence": 0.5,
"scale_x": 8,
"scale_y": 8
},
"type": "perlin"
},
{
"name": "colorize",
"node_position": {
"x": -315.5,
"y": -87.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 0.1875,
"pos": 0.081818,
"r": 0
},
{
"a": 1,
"b": 0.447917,
"g": 0.827474,
"pos": 0.109091,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0.489583,
"pos": 0.227273,
"r": 0.107096
},
{
"a": 1,
"b": 0,
"g": 0.19043,
"pos": 0.554545,
"r": 0.338542
},
{
"a": 1,
"b": 0,
"g": 0.172852,
"pos": 0.927273,
"r": 0.307292
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 1,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_2",
"node_position": {
"x": -314.5,
"y": -156.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.5,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.836364,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_3",
"node_position": {
"x": -316.5,
"y": -21.5
},
"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": "normal_map",
"node_position": {
"x": -20.5,
"y": 273.5
},
"parameters": {
"amount": 0.5,
"param0": 11,
"param1": 0.99,
"size": 4
},
"type": "normal_map"
},
{
"name": "pattern",
"node_position": {
"x": -343.5,
"y": -582.25
},
"parameters": {
"mix": 0,
"x_scale": 4,
"x_wave": 4,
"y_scale": 1,
"y_wave": 0
},
"type": "pattern"
},
{
"name": "colorize_4",
"node_position": {
"x": -300.5,
"y": -473.25
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0.75,
"g": 0.75,
"pos": 0.045455,
"r": 0.75
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.363636,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "blend",
"node_position": {
"x": -300.5,
"y": -399.25
},
"parameters": {
"amount": 0.819444,
"blend_type": 3
},
"type": "blend"
},
{
"name": "comment",
"node_position": {
"x": -544.5,
"y": -395.194458
},
"parameters": {
"size": 4
},
"size": {
"x": 190,
"y": 67
},
"text": "Best viewed on Sphere mesh",
"type": "comment"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,232 @@
{"connections":[{"from":"shape_2","from_port":0,"to":"blend_1","to_port":0},{"from":"shape_1","from_port":0,"to":"blend_1","to_port":1},{"from":"blend_0","from_port":0,"to":"blend_2","to_port":0},{"from":"shape_3","from_port":0,"to":"blend_2","to_port":1},{"from":"blend_2","from_port":0,"to":"colorize_0","to_port":0},{"from":"colorize_0","from_port":0,"to":"Material","to_port":0},{"from":"transform_0","from_port":0,"to":"blend_0","to_port":1},{"from":"blend_1","from_port":0,"to":"blend_0","to_port":0},{"from":"shape_0","from_port":0,"to":"transform_0","to_port":0}],"label":"Graph","name":"535","node_position":{"x":0,"y":0},"nodes":[{"name":"shape_3","node_position":{"x":-35,"y":36},"parameters":{"edge":0.05,"radius":0.18,"shape":0,"sides":3},"type":"shape"},{"name":"shape_0","node_position":{"x":-407,"y":19},"parameters":{"edge":0.02,"radius":0.5,"shape":4,"sides":3},"type":"shape"},{"name":"shape_1","node_position":{"x":-412,"y":-117},"parameters":{"edge":0.02,"radius":0.87,"shape":0,"sides":3},"type":"shape"},{"name":"shape_2","node_position":{"x":-411,"y":-218},"parameters":{"edge":0.02,"radius":0.34,"shape":0,"sides":3},"type":"shape"},{"name":"blend_1","node_position":{"x":-236,"y":-159},"parameters":{"amount":1,"blend_type":11},"type":"blend"},{"name":"Material","node_position":{"x":528,"y":-57},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"blend_0","node_position":{"x":-40,"y":-82},"parameters":{"amount":1,"blend_type":2},"type":"blend"},{"name":"transform_0","node_position":{"x":-245.657654,"y":-16.611115},"parameters":{"repeat":true,"rotate":30,"scale_x":1,"scale_y":1,"translate_x":0,"translate_y":0},"type":"transform"},{"name":"blend_2","node_position":{"x":145,"y":36},"parameters":{"amount":1,"blend_type":3},"type":"blend"},{"name":"colorize_0","node_position":{"x":292.081177,"y":-103.5},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0.820313,"pos":0,"r":0.9375},{"a":1,"b":0,"g":0,"pos":1,"r":0}],"type":"Gradient"}},"type":"colorize"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "shape_2",
"from_port": 0,
"to": "blend_1",
"to_port": 0
},
{
"from": "shape_1",
"from_port": 0,
"to": "blend_1",
"to_port": 1
},
{
"from": "blend_0",
"from_port": 0,
"to": "blend_2",
"to_port": 0
},
{
"from": "shape_3",
"from_port": 0,
"to": "blend_2",
"to_port": 1
},
{
"from": "blend_2",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "transform_0",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "blend_1",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "shape_0",
"from_port": 0,
"to": "transform_0",
"to_port": 0
}
],
"label": "Graph",
"name": "535",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "shape_3",
"node_position": {
"x": -35,
"y": 36
},
"parameters": {
"edge": 0.05,
"radius": 0.18,
"shape": 0,
"sides": 3
},
"type": "shape"
},
{
"name": "shape_0",
"node_position": {
"x": -407,
"y": 19
},
"parameters": {
"edge": 0.02,
"radius": 0.5,
"shape": 4,
"sides": 3
},
"type": "shape"
},
{
"name": "shape_1",
"node_position": {
"x": -412,
"y": -117
},
"parameters": {
"edge": 0.02,
"radius": 0.87,
"shape": 0,
"sides": 3
},
"type": "shape"
},
{
"name": "shape_2",
"node_position": {
"x": -411,
"y": -218
},
"parameters": {
"edge": 0.02,
"radius": 0.34,
"shape": 0,
"sides": 3
},
"type": "shape"
},
{
"name": "blend_1",
"node_position": {
"x": -236,
"y": -159
},
"parameters": {
"amount": 1,
"blend_type": 11
},
"type": "blend"
},
{
"name": "Material",
"node_position": {
"x": 528,
"y": -57
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "blend_0",
"node_position": {
"x": -40,
"y": -82
},
"parameters": {
"amount": 1,
"blend_type": 2
},
"type": "blend"
},
{
"name": "transform_0",
"node_position": {
"x": -245.657654,
"y": -16.611115
},
"parameters": {
"repeat": true,
"rotate": 30,
"scale_x": 1,
"scale_y": 1,
"translate_x": 0,
"translate_y": 0
},
"type": "transform"
},
{
"name": "blend_2",
"node_position": {
"x": 145,
"y": 36
},
"parameters": {
"amount": 1,
"blend_type": 3
},
"type": "blend"
},
{
"name": "colorize_0",
"node_position": {
"x": 292.081177,
"y": -103.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0.820313,
"pos": 0,
"r": 0.9375
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 1,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,315 @@
{"connections":[{"from":"voronoi_0","from_port":0,"to":"blend_0","to_port":0},{"from":"voronoi_0","from_port":1,"to":"blend_0","to_port":1},{"from":"perlin_0","from_port":0,"to":"blend_0","to_port":2},{"from":"blend_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"colorize_0","from_port":0,"to":"Material","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"perlin_0","from_port":0,"to":"colorize_1","to_port":0},{"from":"colorize_1","from_port":0,"to":"Material","to_port":1},{"from":"perlin_0","from_port":0,"to":"colorize_2","to_port":0},{"from":"colorize_2","from_port":0,"to":"Material","to_port":2},{"from":"perlin_1","from_port":0,"to":"warp_0","to_port":1},{"from":"voronoi_1","from_port":1,"to":"warp_0","to_port":0},{"from":"warp_0","from_port":0,"to":"normal_map_0","to_port":0}],"label":"Graph","name":"553","node_position":{"x":0,"y":0},"nodes":[{"name":"normal_map_0","node_position":{"x":583,"y":463},"parameters":{"amount":0.5,"param0":11,"param1":0.99,"size":2},"type":"normal_map"},{"name":"colorize_1","node_position":{"x":533,"y":343},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0,"r":0},{"a":1,"b":0.260417,"g":0.260417,"pos":1,"r":0.260417}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_0","node_position":{"x":530,"y":171},"parameters":{"gradient":{"points":[{"a":1,"b":0.391927,"g":0.523519,"pos":0,"r":0.583333},{"a":1,"b":0.240885,"g":0.276693,"pos":0.345455,"r":0.3125},{"a":1,"b":0.391927,"g":0.523519,"pos":0.645455,"r":0.583333},{"a":1,"b":0.240885,"g":0.276693,"pos":0.945455,"r":0.3125}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_2","node_position":{"x":526,"y":258},"parameters":{"gradient":{"points":[{"a":1,"b":0.364583,"g":0.364583,"pos":0,"r":0.364583},{"a":1,"b":1,"g":1,"pos":1,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"perlin_0","node_position":{"x":105,"y":305},"parameters":{"iterations":6,"persistence":0.85,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"perlin_1","node_position":{"x":102,"y":166},"parameters":{"iterations":3,"persistence":0.65,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"voronoi_1","node_position":{"x":115,"y":63},"parameters":{"intensity":0.85,"randomness":1,"scale_x":4,"scale_y":4},"type":"voronoi"},{"name":"Material","node_position":{"x":768,"y":239},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"warp_0","node_position":{"x":317,"y":139},"parameters":{"amount":0.3,"eps":0.045,"epsilon":0},"type":"warp"},{"name":"voronoi_0","node_position":{"x":117,"y":448},"parameters":{"intensity":1,"randomness":1,"scale_x":4,"scale_y":4},"type":"voronoi"},{"name":"blend_0","node_position":{"x":327,"y":411},"parameters":{"amount":0.5,"blend_type":0},"type":"blend"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "voronoi_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "voronoi_0",
"from_port": 1,
"to": "blend_0",
"to_port": 1
},
{
"from": "perlin_0",
"from_port": 0,
"to": "blend_0",
"to_port": 2
},
{
"from": "blend_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "perlin_0",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "colorize_1",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "perlin_0",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "perlin_1",
"from_port": 0,
"to": "warp_0",
"to_port": 1
},
{
"from": "voronoi_1",
"from_port": 1,
"to": "warp_0",
"to_port": 0
},
{
"from": "warp_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
}
],
"label": "Graph",
"name": "553",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "normal_map_0",
"node_position": {
"x": 583,
"y": 463
},
"parameters": {
"amount": 0.5,
"param0": 11,
"param1": 0.99,
"size": 2
},
"type": "normal_map"
},
{
"name": "colorize_1",
"node_position": {
"x": 533,
"y": 343
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 0.260417,
"g": 0.260417,
"pos": 1,
"r": 0.260417
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_0",
"node_position": {
"x": 530,
"y": 171
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.391927,
"g": 0.523519,
"pos": 0,
"r": 0.583333
},
{
"a": 1,
"b": 0.240885,
"g": 0.276693,
"pos": 0.345455,
"r": 0.3125
},
{
"a": 1,
"b": 0.391927,
"g": 0.523519,
"pos": 0.645455,
"r": 0.583333
},
{
"a": 1,
"b": 0.240885,
"g": 0.276693,
"pos": 0.945455,
"r": 0.3125
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_2",
"node_position": {
"x": 526,
"y": 258
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.364583,
"g": 0.364583,
"pos": 0,
"r": 0.364583
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 1,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "perlin_0",
"node_position": {
"x": 105,
"y": 305
},
"parameters": {
"iterations": 6,
"persistence": 0.85,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "perlin_1",
"node_position": {
"x": 102,
"y": 166
},
"parameters": {
"iterations": 3,
"persistence": 0.65,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "voronoi_1",
"node_position": {
"x": 115,
"y": 63
},
"parameters": {
"intensity": 0.85,
"randomness": 1,
"scale_x": 4,
"scale_y": 4
},
"type": "voronoi"
},
{
"name": "Material",
"node_position": {
"x": 768,
"y": 239
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "warp_0",
"node_position": {
"x": 317,
"y": 139
},
"parameters": {
"amount": 0.3,
"eps": 0.045,
"epsilon": 0
},
"type": "warp"
},
{
"name": "voronoi_0",
"node_position": {
"x": 117,
"y": 448
},
"parameters": {
"intensity": 1,
"randomness": 1,
"scale_x": 4,
"scale_y": 4
},
"type": "voronoi"
},
{
"name": "blend_0",
"node_position": {
"x": 327,
"y": 411
},
"parameters": {
"amount": 0.5,
"blend_type": 0
},
"type": "blend"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,360 @@
{"connections":[{"from":"perlin_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"perlin_1","from_port":0,"to":"colorize_1","to_port":0},{"from":"colorize_2","from_port":0,"to":"blend_0","to_port":0},{"from":"colorize_1","from_port":0,"to":"blend_0","to_port":1},{"from":"perlin_2","from_port":0,"to":"colorize_3","to_port":0},{"from":"colorize_3","from_port":0,"to":"blend_0","to_port":2},{"from":"colorize_0","from_port":0,"to":"blend_1","to_port":1},{"from":"blend_0","from_port":0,"to":"Material","to_port":0},{"from":"perlin_1","from_port":0,"to":"colorize_2","to_port":0},{"from":"colorize_3","from_port":0,"to":"Material","to_port":1},{"from":"blend_1","from_port":0,"to":"Material","to_port":2},{"from":"colorize_4","from_port":0,"to":"blend_1","to_port":0},{"from":"colorize_3","from_port":0,"to":"colorize_4","to_port":0},{"from":"colorize_3","from_port":0,"to":"combine_0","to_port":0},{"from":"blend_1","from_port":0,"to":"combine_0","to_port":1}],"label":"Graph","name":"431","node_position":{"x":0,"y":0},"nodes":[{"name":"perlin_0","node_position":{"x":86,"y":301},"parameters":{"iterations":8,"persistence":0.7,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"perlin_1","node_position":{"x":86,"y":147},"parameters":{"iterations":8,"persistence":0.8,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"perlin_2","node_position":{"x":89,"y":-6},"parameters":{"iterations":8,"persistence":0.9,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"colorize_2","node_position":{"x":365,"y":-41},"parameters":{"gradient":{"points":[{"a":1,"b":0.335938,"g":0.335938,"pos":0,"r":0.335938},{"a":1,"b":0.695313,"g":0.695313,"pos":1,"r":0.695313}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_0","node_position":{"x":363,"y":337},"parameters":{"gradient":{"points":[{"a":1,"b":0.354545,"g":0.354545,"pos":0,"r":0.354545},{"a":1,"b":0.745455,"g":0.745455,"pos":1,"r":0.745455}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_3","node_position":{"x":371,"y":47},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0.445455,"r":0},{"a":1,"b":1,"g":1,"pos":0.445455,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_1","node_position":{"x":371,"y":214},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0.091146,"pos":0,"r":0.208333},{"a":1,"b":0,"g":0.1875,"pos":1,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_4","node_position":{"x":480,"y":141},"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":"Material","node_position":{"x":837,"y":123},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"blend_1","node_position":{"x":566,"y":253},"parameters":{"amount":0.5,"blend_type":4},"type":"blend"},{"name":"blend_0","node_position":{"x":562,"y":-23},"parameters":{"amount":0.800781,"blend_type":0},"type":"blend"},{"name":"combine_0","node_position":{"x":849,"y":-6},"parameters":{"color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"name":0},"type":"combine"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "perlin_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "perlin_1",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "colorize_1",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "perlin_2",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "blend_0",
"to_port": 2
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_1",
"to_port": 1
},
{
"from": "blend_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "perlin_1",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "blend_1",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "colorize_4",
"from_port": 0,
"to": "blend_1",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "colorize_4",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "combine_0",
"to_port": 0
},
{
"from": "blend_1",
"from_port": 0,
"to": "combine_0",
"to_port": 1
}
],
"label": "Graph",
"name": "431",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "perlin_0",
"node_position": {
"x": 86,
"y": 301
},
"parameters": {
"iterations": 8,
"persistence": 0.7,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "perlin_1",
"node_position": {
"x": 86,
"y": 147
},
"parameters": {
"iterations": 8,
"persistence": 0.8,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "perlin_2",
"node_position": {
"x": 89,
"y": -6
},
"parameters": {
"iterations": 8,
"persistence": 0.9,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "colorize_2",
"node_position": {
"x": 365,
"y": -41
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.335938,
"g": 0.335938,
"pos": 0,
"r": 0.335938
},
{
"a": 1,
"b": 0.695313,
"g": 0.695313,
"pos": 1,
"r": 0.695313
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_0",
"node_position": {
"x": 363,
"y": 337
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.354545,
"g": 0.354545,
"pos": 0,
"r": 0.354545
},
{
"a": 1,
"b": 0.745455,
"g": 0.745455,
"pos": 1,
"r": 0.745455
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_3",
"node_position": {
"x": 371,
"y": 47
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.445455,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.445455,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_1",
"node_position": {
"x": 371,
"y": 214
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0.091146,
"pos": 0,
"r": 0.208333
},
{
"a": 1,
"b": 0,
"g": 0.1875,
"pos": 1,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_4",
"node_position": {
"x": 480,
"y": 141
},
"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": "Material",
"node_position": {
"x": 837,
"y": 123
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "blend_1",
"node_position": {
"x": 566,
"y": 253
},
"parameters": {
"amount": 0.5,
"blend_type": 4
},
"type": "blend"
},
{
"name": "blend_0",
"node_position": {
"x": 562,
"y": -23
},
"parameters": {
"amount": 0.800781,
"blend_type": 0
},
"type": "blend"
},
{
"name": "combine_0",
"node_position": {
"x": 849,
"y": -6
},
"parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"name": 0
},
"type": "combine"
}
],
"parameters": {
},
"type": "graph"
}

File diff suppressed because one or more lines are too long

View File

@ -1 +1,356 @@
{"connections":[{"from":"shape","from_port":0,"to":"blend","to_port":0},{"from":"pattern","from_port":0,"to":"blend","to_port":1},{"from":"blend","from_port":0,"to":"transform","to_port":0},{"from":"transform_2","from_port":0,"to":"blend_2","to_port":1},{"from":"transform","from_port":0,"to":"blend_2","to_port":0},{"from":"bricks","from_port":1,"to":"transform_2_2","to_port":0},{"from":"transform_2_2","from_port":0,"to":"blend_3","to_port":0},{"from":"bricks","from_port":1,"to":"blend_3","to_port":1},{"from":"transform_2","from_port":0,"to":"blend_4","to_port":0},{"from":"transform","from_port":0,"to":"blend_4","to_port":1},{"from":"transform","from_port":0,"to":"transform_2","to_port":0},{"from":"blend_4","from_port":0,"to":"colorize","to_port":0},{"from":"colorize","from_port":0,"to":"blend_3","to_port":2},{"from":"blend_2","from_port":0,"to":"normal_map","to_port":0},{"from":"normal_map","from_port":0,"to":"Material","to_port":4},{"from":"blend_3","from_port":0,"to":"colorize_2","to_port":0},{"from":"colorize_2","from_port":0,"to":"Material","to_port":0}],"label":"Graph","name":"39","node_position":{"x":0,"y":0},"nodes":[{"name":"Material","node_position":{"x":510,"y":-55},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":0.45,"metallic":1,"normal_scale":2.15,"roughness":1,"size":11},"type":"material"},{"name":"shape","node_position":{"x":-624.5,"y":-157.5},"parameters":{"edge":0.0625,"radius":1,"shape":0,"sides":6},"type":"shape"},{"name":"transform","node_position":{"x":-445.5,"y":-87.5},"parameters":{"repeat":true,"rotate":0,"scale_x":0.125,"scale_y":0.125,"translate_x":0,"translate_y":0},"type":"transform"},{"name":"pattern","node_position":{"x":-726.5,"y":-55.5},"parameters":{"mix":0,"x_scale":2,"x_wave":4,"y_scale":1,"y_wave":3},"type":"pattern"},{"name":"blend","node_position":{"x":-444.240479,"y":-198.5},"parameters":{"amount":1,"blend_type":2},"type":"blend"},{"name":"transform_2","node_position":{"x":-222.240479,"y":-85.5},"parameters":{"repeat":true,"rotate":0,"scale_x":1,"scale_y":1,"translate_x":0.06,"translate_y":0.06},"type":"transform"},{"name":"blend_2","node_position":{"x":-167.240479,"y":-198.5},"parameters":{"amount":1,"blend_type":9},"type":"blend"},{"name":"bricks","node_position":{"x":-506.407684,"y":150.5},"parameters":{"bevel":0,"columns":8,"mortar":0.1,"pattern":0,"repeat":1,"row_offset":0,"rows":8},"type":"bricks"},{"name":"blend_3","node_position":{"x":2.592316,"y":168.5},"parameters":{"amount":1,"blend_type":0},"type":"blend"},{"name":"transform_2_2","node_position":{"x":-262.407715,"y":140},"parameters":{"repeat":true,"rotate":0,"scale_x":1,"scale_y":1,"translate_x":0.56,"translate_y":0.56},"type":"transform"},{"name":"blend_4","node_position":{"x":5.592316,"y":65.5},"parameters":{"amount":1,"blend_type":11},"type":"blend"},{"name":"colorize","node_position":{"x":-14.407684,"y":262.5},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0,"r":0},{"a":1,"b":1,"g":1,"pos":0.072727,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"normal_map","node_position":{"x":83.448486,"y":-87.5},"parameters":{"amount":0.5,"param0":11,"param1":0.69,"size":4},"type":"normal_map"},{"name":"colorize_2","node_position":{"x":217.448486,"y":41.5},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0.375,"pos":0,"r":1},{"a":1,"b":0,"g":0.300293,"pos":1,"r":0.640625}],"type":"Gradient"}},"type":"colorize"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "shape",
"from_port": 0,
"to": "blend",
"to_port": 0
},
{
"from": "pattern",
"from_port": 0,
"to": "blend",
"to_port": 1
},
{
"from": "blend",
"from_port": 0,
"to": "transform",
"to_port": 0
},
{
"from": "transform_2",
"from_port": 0,
"to": "blend_2",
"to_port": 1
},
{
"from": "transform",
"from_port": 0,
"to": "blend_2",
"to_port": 0
},
{
"from": "bricks",
"from_port": 1,
"to": "transform_2_2",
"to_port": 0
},
{
"from": "transform_2_2",
"from_port": 0,
"to": "blend_3",
"to_port": 0
},
{
"from": "bricks",
"from_port": 1,
"to": "blend_3",
"to_port": 1
},
{
"from": "transform_2",
"from_port": 0,
"to": "blend_4",
"to_port": 0
},
{
"from": "transform",
"from_port": 0,
"to": "blend_4",
"to_port": 1
},
{
"from": "transform",
"from_port": 0,
"to": "transform_2",
"to_port": 0
},
{
"from": "blend_4",
"from_port": 0,
"to": "colorize",
"to_port": 0
},
{
"from": "colorize",
"from_port": 0,
"to": "blend_3",
"to_port": 2
},
{
"from": "blend_2",
"from_port": 0,
"to": "normal_map",
"to_port": 0
},
{
"from": "normal_map",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "blend_3",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "Material",
"to_port": 0
}
],
"label": "Graph",
"name": "39",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 510,
"y": -55
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 0.45,
"metallic": 1,
"normal_scale": 2.15,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "shape",
"node_position": {
"x": -624.5,
"y": -157.5
},
"parameters": {
"edge": 0.0625,
"radius": 1,
"shape": 0,
"sides": 6
},
"type": "shape"
},
{
"name": "transform",
"node_position": {
"x": -445.5,
"y": -87.5
},
"parameters": {
"repeat": true,
"rotate": 0,
"scale_x": 0.125,
"scale_y": 0.125,
"translate_x": 0,
"translate_y": 0
},
"type": "transform"
},
{
"name": "pattern",
"node_position": {
"x": -726.5,
"y": -55.5
},
"parameters": {
"mix": 0,
"x_scale": 2,
"x_wave": 4,
"y_scale": 1,
"y_wave": 3
},
"type": "pattern"
},
{
"name": "blend",
"node_position": {
"x": -444.240479,
"y": -198.5
},
"parameters": {
"amount": 1,
"blend_type": 2
},
"type": "blend"
},
{
"name": "transform_2",
"node_position": {
"x": -222.240479,
"y": -85.5
},
"parameters": {
"repeat": true,
"rotate": 0,
"scale_x": 1,
"scale_y": 1,
"translate_x": 0.06,
"translate_y": 0.06
},
"type": "transform"
},
{
"name": "blend_2",
"node_position": {
"x": -167.240479,
"y": -198.5
},
"parameters": {
"amount": 1,
"blend_type": 9
},
"type": "blend"
},
{
"name": "bricks",
"node_position": {
"x": -506.407684,
"y": 150.5
},
"parameters": {
"bevel": 0,
"columns": 8,
"mortar": 0.1,
"pattern": 0,
"repeat": 1,
"row_offset": 0,
"rows": 8
},
"type": "bricks"
},
{
"name": "blend_3",
"node_position": {
"x": 2.592316,
"y": 168.5
},
"parameters": {
"amount": 1,
"blend_type": 0
},
"type": "blend"
},
{
"name": "transform_2_2",
"node_position": {
"x": -262.407715,
"y": 140
},
"parameters": {
"repeat": true,
"rotate": 0,
"scale_x": 1,
"scale_y": 1,
"translate_x": 0.56,
"translate_y": 0.56
},
"type": "transform"
},
{
"name": "blend_4",
"node_position": {
"x": 5.592316,
"y": 65.5
},
"parameters": {
"amount": 1,
"blend_type": 11
},
"type": "blend"
},
{
"name": "colorize",
"node_position": {
"x": -14.407684,
"y": 262.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.072727,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "normal_map",
"node_position": {
"x": 83.448486,
"y": -87.5
},
"parameters": {
"amount": 0.5,
"param0": 11,
"param1": 0.69,
"size": 4
},
"type": "normal_map"
},
{
"name": "colorize_2",
"node_position": {
"x": 217.448486,
"y": 41.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0.375,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0.300293,
"pos": 1,
"r": 0.640625
}
],
"type": "Gradient"
}
},
"type": "colorize"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,350 @@
{"connections":[{"from":"perlin_0","from_port":0,"to":"warp_0","to_port":0},{"from":"perlin_1","from_port":0,"to":"warp_0","to_port":1},{"from":"perlin_2","from_port":0,"to":"blend_0","to_port":0},{"from":"blend_0","from_port":0,"to":"normal_map_0","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"blend_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"colorize_0","from_port":0,"to":"Material","to_port":2},{"from":"blend_0","from_port":0,"to":"Material","to_port":1},{"from":"voronoi_0","from_port":0,"to":"colorize_1","to_port":0},{"from":"warp_0","from_port":0,"to":"warp_1","to_port":0},{"from":"colorize_1","from_port":0,"to":"warp_1","to_port":1},{"from":"warp_1","from_port":0,"to":"blend_0","to_port":1},{"from":"colorize_0","from_port":0,"to":"combine_0","to_port":1},{"from":"blend_0","from_port":0,"to":"colorize_2","to_port":0},{"from":"blend_0","from_port":0,"to":"combine_0","to_port":0},{"from":"colorize_2","from_port":0,"to":"Material","to_port":0}],"label":"Graph","name":"475","node_position":{"x":0,"y":0},"nodes":[{"name":"perlin_2","node_position":{"x":-312,"y":2.5},"parameters":{"iterations":6,"persistence":1,"scale_x":32,"scale_y":4},"type":"perlin"},{"name":"perlin_1","node_position":{"x":-424,"y":343.5},"parameters":{"iterations":3,"persistence":0.5,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"perlin_0","node_position":{"x":-424,"y":212.5},"parameters":{"iterations":3,"persistence":0.5,"scale_x":32,"scale_y":4},"type":"perlin"},{"name":"warp_0","node_position":{"x":-180,"y":317.5},"parameters":{"amount":0.1,"eps":0.05,"epsilon":0},"type":"warp"},{"name":"colorize_1","node_position":{"x":-194,"y":466.5},"parameters":{"gradient":{"points":[{"a":1,"b":0.432292,"g":0.432292,"pos":0,"r":0.432292},{"a":1,"b":0,"g":0,"pos":0.345455,"r":0}],"type":"Gradient"}},"type":"colorize"},{"name":"warp_1","node_position":{"x":-31,"y":349.5},"parameters":{"amount":0.1,"eps":0.045,"epsilon":0},"type":"warp"},{"name":"voronoi_0","node_position":{"x":-437,"y":484.5},"parameters":{"intensity":1,"randomness":1,"scale_x":5,"scale_y":4},"type":"voronoi"},{"name":"blend_0","node_position":{"x":83,"y":245.5},"parameters":{"amount":1,"blend_type":2},"type":"blend"},{"name":"combine_0","node_position":{"x":515.35144,"y":-15.818176},"parameters":{"color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"name":0},"type":"combine"},{"name":"Material","node_position":{"x":544,"y":79},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"colorize_2","node_position":{"x":305.35144,"y":76.181824},"parameters":{"gradient":{"points":[{"a":1,"b":0.071126,"g":0.34877,"pos":0,"r":0.59375},{"a":1,"b":0.013021,"g":0.144043,"pos":1,"r":0.3125}],"type":"Gradient"}},"type":"colorize"},{"name":"normal_map_0","node_position":{"x":319,"y":265.5},"parameters":{"amount":0.1,"param0":11,"param1":0.99,"size":5},"type":"normal_map"},{"name":"colorize_0","node_position":{"x":313,"y":176.5},"parameters":{"gradient":{"points":[{"a":1,"b":0.53125,"g":0.53125,"pos":0,"r":0.53125},{"a":1,"b":0.708333,"g":0.708333,"pos":1,"r":0.708333}],"type":"Gradient"}},"type":"colorize"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "perlin_0",
"from_port": 0,
"to": "warp_0",
"to_port": 0
},
{
"from": "perlin_1",
"from_port": 0,
"to": "warp_0",
"to_port": 1
},
{
"from": "perlin_2",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "blend_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "blend_0",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "voronoi_0",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "warp_0",
"from_port": 0,
"to": "warp_1",
"to_port": 0
},
{
"from": "colorize_1",
"from_port": 0,
"to": "warp_1",
"to_port": 1
},
{
"from": "warp_1",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "colorize_0",
"from_port": 0,
"to": "combine_0",
"to_port": 1
},
{
"from": "blend_0",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "combine_0",
"to_port": 0
},
{
"from": "colorize_2",
"from_port": 0,
"to": "Material",
"to_port": 0
}
],
"label": "Graph",
"name": "475",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "perlin_2",
"node_position": {
"x": -312,
"y": 2.5
},
"parameters": {
"iterations": 6,
"persistence": 1,
"scale_x": 32,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "perlin_1",
"node_position": {
"x": -424,
"y": 343.5
},
"parameters": {
"iterations": 3,
"persistence": 0.5,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "perlin_0",
"node_position": {
"x": -424,
"y": 212.5
},
"parameters": {
"iterations": 3,
"persistence": 0.5,
"scale_x": 32,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "warp_0",
"node_position": {
"x": -180,
"y": 317.5
},
"parameters": {
"amount": 0.1,
"eps": 0.05,
"epsilon": 0
},
"type": "warp"
},
{
"name": "colorize_1",
"node_position": {
"x": -194,
"y": 466.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.432292,
"g": 0.432292,
"pos": 0,
"r": 0.432292
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.345455,
"r": 0
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "warp_1",
"node_position": {
"x": -31,
"y": 349.5
},
"parameters": {
"amount": 0.1,
"eps": 0.045,
"epsilon": 0
},
"type": "warp"
},
{
"name": "voronoi_0",
"node_position": {
"x": -437,
"y": 484.5
},
"parameters": {
"intensity": 1,
"randomness": 1,
"scale_x": 5,
"scale_y": 4
},
"type": "voronoi"
},
{
"name": "blend_0",
"node_position": {
"x": 83,
"y": 245.5
},
"parameters": {
"amount": 1,
"blend_type": 2
},
"type": "blend"
},
{
"name": "combine_0",
"node_position": {
"x": 515.35144,
"y": -15.818176
},
"parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"name": 0
},
"type": "combine"
},
{
"name": "Material",
"node_position": {
"x": 544,
"y": 79
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "colorize_2",
"node_position": {
"x": 305.35144,
"y": 76.181824
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.071126,
"g": 0.34877,
"pos": 0,
"r": 0.59375
},
{
"a": 1,
"b": 0.013021,
"g": 0.144043,
"pos": 1,
"r": 0.3125
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "normal_map_0",
"node_position": {
"x": 319,
"y": 265.5
},
"parameters": {
"amount": 0.1,
"param0": 11,
"param1": 0.99,
"size": 5
},
"type": "normal_map"
},
{
"name": "colorize_0",
"node_position": {
"x": 313,
"y": 176.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.53125,
"g": 0.53125,
"pos": 0,
"r": 0.53125
},
{
"a": 1,
"b": 0.708333,
"g": 0.708333,
"pos": 1,
"r": 0.708333
}
],
"type": "Gradient"
}
},
"type": "colorize"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,489 @@
{"connections":[{"from":"bricks_0","from_port":0,"to":"blend_0","to_port":0},{"from":"perlin_0","from_port":0,"to":"blend_0","to_port":1},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"perlin_1","from_port":0,"to":"colorize_2","to_port":0},{"from":"colorize_0","from_port":0,"to":"blend_1","to_port":1},{"from":"perlin_2","from_port":0,"to":"colorize_3","to_port":0},{"from":"colorize_3","from_port":0,"to":"blend_1","to_port":2},{"from":"blend_1","from_port":0,"to":"Material","to_port":0},{"from":"colorize_3","from_port":0,"to":"blend_2","to_port":0},{"from":"blend_2","from_port":0,"to":"Material","to_port":2},{"from":"blend_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"uniform_1","from_port":0,"to":"Material","to_port":1},{"from":"uniform_0","from_port":0,"to":"blend_2","to_port":1},{"from":"perlin_1","from_port":0,"to":"colorize_1","to_port":0},{"from":"uniform_1","from_port":0,"to":"combine_0","to_port":0},{"from":"blend_2","from_port":0,"to":"combine_0","to_port":1},{"from":"colorize_2","from_port":0,"to":"blend_1","to_port":0},{"from":"blend_0","from_port":0,"to":"normal_map_0","to_port":0}],"label":"Graph","name":"505","node_position":{"x":0,"y":0},"nodes":[{"name":"Material","node_position":{"x":938,"y":96},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"colorize_3","node_position":{"x":487.633789,"y":65},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0.5,"r":0},{"a":1,"b":1,"g":1,"pos":0.672727,"r":1}],"type":"Gradient"}},"type":"colorize"},{"name":"bricks_0","node_position":{"x":-21,"y":70.5},"parameters":{"bevel":0.007813,"columns":5,"mortar":0.025469,"pattern":0,"repeat":1,"row_offset":0.5,"rows":1},"type":"bricks"},{"name":"colorize_0","node_position":{"x":472,"y":-41.5},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0.336914,"pos":0,"r":0.598958},{"a":1,"b":0,"g":0.454102,"pos":0.118182,"r":0.807292},{"a":1,"b":0,"g":0.37793,"pos":0.245455,"r":0.671875},{"a":1,"b":0,"g":0.427734,"pos":0.345455,"r":0.760417},{"a":1,"b":0.017795,"g":0.488254,"pos":0.527273,"r":0.854167},{"a":1,"b":0,"g":0.37793,"pos":0.645455,"r":0.671875},{"a":1,"b":0,"g":0.439453,"pos":0.845455,"r":0.78125},{"a":1,"b":0,"g":0.357422,"pos":1,"r":0.635417}],"type":"Gradient"}},"type":"colorize"},{"name":"perlin_1","node_position":{"x":110.633789,"y":-143.5},"parameters":{"iterations":7,"persistence":0.55,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"blend_2","node_position":{"x":690.633789,"y":201.5},"parameters":{"amount":0.4,"blend_type":0},"type":"blend"},{"name":"perlin_2","node_position":{"x":232.633789,"y":40},"parameters":{"iterations":6,"persistence":0.65,"scale_x":4,"scale_y":4},"type":"perlin"},{"name":"normal_map_0","node_position":{"x":724.633789,"y":345.5},"parameters":{"amount":0.15,"param0":11,"param1":0.99,"size":4},"type":"normal_map"},{"name":"blend_1","node_position":{"x":707.633789,"y":-68},"parameters":{"amount":1,"blend_type":0},"type":"blend"},{"name":"blend_0","node_position":{"x":222,"y":265.5},"parameters":{"amount":1,"blend_type":2},"type":"blend"},{"name":"uniform_1","node_position":{"x":753,"y":116},"parameters":{"color":{"a":1,"b":0,"g":0,"r":0,"type":"Color"}},"type":"uniform"},{"name":"uniform_0","node_position":{"x":540,"y":234},"parameters":{"color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"}},"type":"uniform"},{"name":"colorize_2","node_position":{"x":454.633789,"y":-189.5},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0,"r":0.515625},{"a":1,"b":0,"g":0,"pos":0.145455,"r":0.25},{"a":1,"b":0,"g":0,"pos":0.445455,"r":0.515625},{"a":1,"b":0.013184,"g":0.013184,"pos":0.745455,"r":0.28125},{"a":1,"b":0,"g":0,"pos":1,"r":0.322917}],"type":"Gradient"}},"type":"colorize"},{"name":"colorize_1","node_position":{"x":461.329102,"y":-116.699997},"parameters":{"gradient":{"points":[{"a":1,"b":0.034912,"g":0.129532,"pos":0,"r":0.203125},{"a":1,"b":0.038791,"g":0.074319,"pos":1,"r":0.114583}],"type":"Gradient"}},"type":"colorize"},{"name":"combine_0","node_position":{"x":942.329102,"y":-55.5},"parameters":{"color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"name":0},"type":"combine"},{"name":"perlin_0","node_position":{"x":-20,"y":279.5},"parameters":{"iterations":6,"persistence":0.7,"scale_x":20,"scale_y":3},"type":"perlin"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "bricks_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "perlin_0",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "perlin_1",
"from_port": 0,
"to": "colorize_2",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_1",
"to_port": 1
},
{
"from": "perlin_2",
"from_port": 0,
"to": "colorize_3",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "blend_1",
"to_port": 2
},
{
"from": "blend_1",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "colorize_3",
"from_port": 0,
"to": "blend_2",
"to_port": 0
},
{
"from": "blend_2",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "blend_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "uniform_1",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "uniform_0",
"from_port": 0,
"to": "blend_2",
"to_port": 1
},
{
"from": "perlin_1",
"from_port": 0,
"to": "colorize_1",
"to_port": 0
},
{
"from": "uniform_1",
"from_port": 0,
"to": "combine_0",
"to_port": 0
},
{
"from": "blend_2",
"from_port": 0,
"to": "combine_0",
"to_port": 1
},
{
"from": "colorize_2",
"from_port": 0,
"to": "blend_1",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
}
],
"label": "Graph",
"name": "505",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 938,
"y": 96
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "colorize_3",
"node_position": {
"x": 487.633789,
"y": 65
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.5,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 0.672727,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "bricks_0",
"node_position": {
"x": -21,
"y": 70.5
},
"parameters": {
"bevel": 0.007813,
"columns": 5,
"mortar": 0.025469,
"pattern": 0,
"repeat": 1,
"row_offset": 0.5,
"rows": 1
},
"type": "bricks"
},
{
"name": "colorize_0",
"node_position": {
"x": 472,
"y": -41.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0.336914,
"pos": 0,
"r": 0.598958
},
{
"a": 1,
"b": 0,
"g": 0.454102,
"pos": 0.118182,
"r": 0.807292
},
{
"a": 1,
"b": 0,
"g": 0.37793,
"pos": 0.245455,
"r": 0.671875
},
{
"a": 1,
"b": 0,
"g": 0.427734,
"pos": 0.345455,
"r": 0.760417
},
{
"a": 1,
"b": 0.017795,
"g": 0.488254,
"pos": 0.527273,
"r": 0.854167
},
{
"a": 1,
"b": 0,
"g": 0.37793,
"pos": 0.645455,
"r": 0.671875
},
{
"a": 1,
"b": 0,
"g": 0.439453,
"pos": 0.845455,
"r": 0.78125
},
{
"a": 1,
"b": 0,
"g": 0.357422,
"pos": 1,
"r": 0.635417
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "perlin_1",
"node_position": {
"x": 110.633789,
"y": -143.5
},
"parameters": {
"iterations": 7,
"persistence": 0.55,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "blend_2",
"node_position": {
"x": 690.633789,
"y": 201.5
},
"parameters": {
"amount": 0.4,
"blend_type": 0
},
"type": "blend"
},
{
"name": "perlin_2",
"node_position": {
"x": 232.633789,
"y": 40
},
"parameters": {
"iterations": 6,
"persistence": 0.65,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "normal_map_0",
"node_position": {
"x": 724.633789,
"y": 345.5
},
"parameters": {
"amount": 0.15,
"param0": 11,
"param1": 0.99,
"size": 4
},
"type": "normal_map"
},
{
"name": "blend_1",
"node_position": {
"x": 707.633789,
"y": -68
},
"parameters": {
"amount": 1,
"blend_type": 0
},
"type": "blend"
},
{
"name": "blend_0",
"node_position": {
"x": 222,
"y": 265.5
},
"parameters": {
"amount": 1,
"blend_type": 2
},
"type": "blend"
},
{
"name": "uniform_1",
"node_position": {
"x": 753,
"y": 116
},
"parameters": {
"color": {
"a": 1,
"b": 0,
"g": 0,
"r": 0,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "uniform_0",
"node_position": {
"x": 540,
"y": 234
},
"parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "colorize_2",
"node_position": {
"x": 454.633789,
"y": -189.5
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0.515625
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.145455,
"r": 0.25
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0.445455,
"r": 0.515625
},
{
"a": 1,
"b": 0.013184,
"g": 0.013184,
"pos": 0.745455,
"r": 0.28125
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 1,
"r": 0.322917
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "colorize_1",
"node_position": {
"x": 461.329102,
"y": -116.699997
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0.034912,
"g": 0.129532,
"pos": 0,
"r": 0.203125
},
{
"a": 1,
"b": 0.038791,
"g": 0.074319,
"pos": 1,
"r": 0.114583
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "combine_0",
"node_position": {
"x": 942.329102,
"y": -55.5
},
"parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"name": 0
},
"type": "combine"
},
{
"name": "perlin_0",
"node_position": {
"x": -20,
"y": 279.5
},
"parameters": {
"iterations": 6,
"persistence": 0.7,
"scale_x": 20,
"scale_y": 3
},
"type": "perlin"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -1 +1,273 @@
{"connections":[{"from":"bricks_0","from_port":0,"to":"colorize_0","to_port":0},{"from":"colorize_0","from_port":0,"to":"blend_0","to_port":0},{"from":"blend_0","from_port":0,"to":"Material","to_port":0},{"from":"normal_map_0","from_port":0,"to":"Material","to_port":4},{"from":"blend_0","from_port":0,"to":"Material","to_port":2},{"from":"uniform_0","from_port":0,"to":"Material","to_port":1},{"from":"uniform_0","from_port":0,"to":"combine_0","to_port":0},{"from":"blend_0","from_port":0,"to":"combine_0","to_port":1},{"from":"transform_1","from_port":0,"to":"blend_0","to_port":1},{"from":"perlin_0","from_port":0,"to":"transform_1","to_port":0},{"from":"bricks_0","from_port":1,"to":"decompose_0","to_port":0},{"from":"decompose_0","from_port":0,"to":"transform_1","to_port":1},{"from":"decompose_0","from_port":1,"to":"transform_1","to_port":2},{"from":"blend_0","from_port":0,"to":"normal_map_0","to_port":0}],"label":"Graph","name":"490","node_position":{"x":0,"y":0},"nodes":[{"name":"colorize_0","node_position":{"x":524,"y":-100.75},"parameters":{"gradient":{"points":[{"a":1,"b":0,"g":0,"pos":0,"r":0},{"a":1,"b":0.213623,"g":0.391325,"pos":0.145455,"r":0.651042}],"type":"Gradient"}},"type":"colorize"},{"name":"normal_map_0","node_position":{"x":740,"y":135.25},"parameters":{"amount":0.3,"param0":11,"param1":0.2,"size":4},"type":"normal_map"},{"name":"uniform_0","node_position":{"x":781,"y":58},"parameters":{"color":{"a":1,"b":0,"g":0,"r":0,"type":"Color"}},"type":"uniform"},{"name":"Material","node_position":{"x":992,"y":42},"parameters":{"albedo_color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"ao_light_affect":1,"depth_scale":1,"emission_energy":1,"metallic":1,"normal_scale":1,"resolution":1,"roughness":1,"size":11},"type":"material"},{"name":"combine_0","node_position":{"x":866,"y":-78},"parameters":{"color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"name":0},"type":"combine"},{"name":"perlin_0","node_position":{"x":69,"y":81.25},"parameters":{"iterations":6,"persistence":0.75,"scale_x":4,"scale_y":20},"type":"perlin"},{"name":"decompose_0","node_position":{"x":97,"y":236},"parameters":{},"type":"decompose"},{"name":"bricks_0","node_position":{"x":79,"y":-124.75},"parameters":{"bevel":0,"columns":1,"mortar":0.02,"pattern":0,"repeat":1,"row_offset":0.5,"rows":10},"type":"bricks"},{"name":"transform_1","node_position":{"x":290,"y":120},"parameters":{"repeat":true,"rotate":0,"scale_x":1,"scale_y":1,"translate_x":1,"translate_y":1},"type":"transform"},{"name":"blend_0","node_position":{"x":492,"y":-13.75},"parameters":{"amount":0.554688,"blend_type":0},"type":"blend"}],"parameters":{},"type":"graph"}
{
"connections": [
{
"from": "bricks_0",
"from_port": 0,
"to": "colorize_0",
"to_port": 0
},
{
"from": "colorize_0",
"from_port": 0,
"to": "blend_0",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "normal_map_0",
"from_port": 0,
"to": "Material",
"to_port": 4
},
{
"from": "blend_0",
"from_port": 0,
"to": "Material",
"to_port": 2
},
{
"from": "uniform_0",
"from_port": 0,
"to": "Material",
"to_port": 1
},
{
"from": "uniform_0",
"from_port": 0,
"to": "combine_0",
"to_port": 0
},
{
"from": "blend_0",
"from_port": 0,
"to": "combine_0",
"to_port": 1
},
{
"from": "transform_1",
"from_port": 0,
"to": "blend_0",
"to_port": 1
},
{
"from": "perlin_0",
"from_port": 0,
"to": "transform_1",
"to_port": 0
},
{
"from": "bricks_0",
"from_port": 1,
"to": "decompose_0",
"to_port": 0
},
{
"from": "decompose_0",
"from_port": 0,
"to": "transform_1",
"to_port": 1
},
{
"from": "decompose_0",
"from_port": 1,
"to": "transform_1",
"to_port": 2
},
{
"from": "blend_0",
"from_port": 0,
"to": "normal_map_0",
"to_port": 0
}
],
"label": "Graph",
"name": "490",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "colorize_0",
"node_position": {
"x": 524,
"y": -100.75
},
"parameters": {
"gradient": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 0.213623,
"g": 0.391325,
"pos": 0.145455,
"r": 0.651042
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "normal_map_0",
"node_position": {
"x": 740,
"y": 135.25
},
"parameters": {
"amount": 0.3,
"param0": 11,
"param1": 0.2,
"size": 4
},
"type": "normal_map"
},
{
"name": "uniform_0",
"node_position": {
"x": 781,
"y": 58
},
"parameters": {
"color": {
"a": 1,
"b": 0,
"g": 0,
"r": 0,
"type": "Color"
}
},
"type": "uniform"
},
{
"name": "Material",
"node_position": {
"x": 992,
"y": 42
},
"parameters": {
"albedo_color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"ao_light_affect": 1,
"depth_scale": 1,
"emission_energy": 1,
"metallic": 1,
"normal_scale": 1,
"resolution": 1,
"roughness": 1,
"size": 11
},
"type": "material"
},
{
"name": "combine_0",
"node_position": {
"x": 866,
"y": -78
},
"parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"name": 0
},
"type": "combine"
},
{
"name": "perlin_0",
"node_position": {
"x": 69,
"y": 81.25
},
"parameters": {
"iterations": 6,
"persistence": 0.75,
"scale_x": 4,
"scale_y": 20
},
"type": "perlin"
},
{
"name": "decompose_0",
"node_position": {
"x": 97,
"y": 236
},
"parameters": {
},
"type": "decompose"
},
{
"name": "bricks_0",
"node_position": {
"x": 79,
"y": -124.75
},
"parameters": {
"bevel": 0,
"columns": 1,
"mortar": 0.02,
"pattern": 0,
"repeat": 1,
"row_offset": 0.5,
"rows": 10
},
"type": "bricks"
},
{
"name": "transform_1",
"node_position": {
"x": 290,
"y": 120
},
"parameters": {
"repeat": true,
"rotate": 0,
"scale_x": 1,
"scale_y": 1,
"translate_x": 1,
"translate_y": 1
},
"type": "transform"
},
{
"name": "blend_0",
"node_position": {
"x": 492,
"y": -13.75
},
"parameters": {
"amount": 0.554688,
"blend_type": 0
},
"type": "blend"
}
],
"parameters": {
},
"type": "graph"
}

View File

@ -57,7 +57,6 @@ func disconnect_node(from, from_slot, to, to_slot) -> void:
send_changed_signal()
func on_connections_changed(removed_connections : Array, added_connections : Array) -> void:
print("connections_changed")
for c in removed_connections:
.disconnect_node("node_"+c.from, c.from_port, "node_"+c.to, c.to_port)
for c in added_connections:
@ -199,7 +198,7 @@ func save_file(filename) -> void:
var data = top_generator.serialize()
var file = File.new()
if file.open(filename, File.WRITE) == OK:
file.store_string(to_json(data))
file.store_string(JSON.print(data, "\t", true))
file.close()
set_save_path(filename)
set_need_save(false)

View File

@ -128,7 +128,7 @@ func save_library(library_name : String, item : TreeItem = null) -> void:
serialize_library(array, library_name)
var file = File.new()
if file.open(library_name, File.WRITE) == OK:
file.store_string(to_json({lib=array}))
file.store_string(JSON.print({lib=array}, "\t", true))
file.close()
func _on_Filter_text_changed(filter) -> void:

View File

@ -1 +1,59 @@
{"name":"adjust_hsv","node_position":{"x":0,"y":0},"parameters":{"hue":0,"saturation":1,"value":1},"shader_model":{"global":"vec3 rgb_to_hsv(vec3 c) {\n\tvec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\n\tvec4 p = c.g < c.b ? vec4(c.bg, K.wz) : vec4(c.gb, K.xy);\n\tvec4 q = c.r < p.x ? vec4(p.xyw, c.r) : vec4(c.r, p.yzx);\n\n\tfloat d = q.x - min(q.w, q.y);\n\tfloat e = 1.0e-10;\n\treturn vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);\n}\n\nvec3 hsv_to_rgb(vec3 c) {\n\tvec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n\tvec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\n\treturn c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\n}\n","inputs":[{"default":"vec4($uv.x, $uv.y, 0.0, 1.0)","label":"","name":"in","type":"rgba"}],"instance":"vec4 $(name)_f(vec4 c) {\n\tvec3 hsv = rgb_to_hsv(c.rgb);\n\treturn vec4(hsv_to_rgb(vec3(fract(hsv.x+$(hue)), clamp(hsv.y*$(saturation), 0.0, 1.0), clamp(hsv.z*$(value), 0.0, 1.0))), c.a);\n}","name":"AdjustHSV","outputs":[{"rgba":"$(name)_f($in($(uv)))"}],"parameters":[{"default":0,"label":"Hue","max":0.5,"min":-0.5,"name":"hue","step":0,"type":"float"},{"default":1,"label":"Saturation","max":2,"min":0,"name":"saturation","step":0,"type":"float"},{"default":1,"label":"Value","max":2,"min":0,"name":"value","step":0,"type":"float"}]}}
{
"name": "adjust_hsv",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"hue": 0,
"saturation": 1,
"value": 1
},
"shader_model": {
"global": "vec3 rgb_to_hsv(vec3 c) {\n\tvec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0);\n\tvec4 p = c.g < c.b ? vec4(c.bg, K.wz) : vec4(c.gb, K.xy);\n\tvec4 q = c.r < p.x ? vec4(p.xyw, c.r) : vec4(c.r, p.yzx);\n\n\tfloat d = q.x - min(q.w, q.y);\n\tfloat e = 1.0e-10;\n\treturn vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x);\n}\n\nvec3 hsv_to_rgb(vec3 c) {\n\tvec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0);\n\tvec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www);\n\treturn c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y);\n}\n",
"inputs": [
{
"default": "vec4($uv.x, $uv.y, 0.0, 1.0)",
"label": "",
"name": "in",
"type": "rgba"
}
],
"instance": "vec4 $(name)_f(vec4 c) {\n\tvec3 hsv = rgb_to_hsv(c.rgb);\n\treturn vec4(hsv_to_rgb(vec3(fract(hsv.x+$(hue)), clamp(hsv.y*$(saturation), 0.0, 1.0), clamp(hsv.z*$(value), 0.0, 1.0))), c.a);\n}",
"name": "AdjustHSV",
"outputs": [
{
"rgba": "$(name)_f($in($(uv)))"
}
],
"parameters": [
{
"default": 0,
"label": "Hue",
"max": 0.5,
"min": -0.5,
"name": "hue",
"step": 0,
"type": "float"
},
{
"default": 1,
"label": "Saturation",
"max": 2,
"min": 0,
"name": "saturation",
"step": 0,
"type": "float"
},
{
"default": 1,
"label": "Value",
"max": 2,
"min": 0,
"name": "value",
"step": 0,
"type": "float"
}
]
}
}

View File

@ -6,13 +6,9 @@ var generator : MMGenBase = null setget set_generator
func _ready() -> void:
connect("offset_changed", self, "_on_offset_changed")
connect("close_request", self, "_on_close_request")
func set_generator(g) -> void:
generator = g
func _on_offset_changed() -> void:
generator.set_position(offset)
func _on_close_request() -> void:
generator.get_parent().remove_generator(generator)

View File

@ -1 +1,109 @@
{"name":"blend","node_position":{"x":0,"y":0},"parameters":{"amount":0.935642,"blend_type":0},"shader_model":{"global":"vec3 blend_normal(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*c1 + (1.0-opacity)*c2;\n}\n\nvec3 blend_dissolve(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\tif (rand(uv) < opacity) {\n\t\treturn c1;\n\t} else {\n\t\treturn c2;\n\t}\n}\n\nvec3 blend_multiply(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*c1*c2 + (1.0-opacity)*c2;\n}\n\nvec3 blend_screen(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*(1.0-(1.0-c1)*(1.0-c2)) + (1.0-opacity)*c2;\n}\n\nfloat blend_overlay_f(float c1, float c2) {\n\treturn (c1 < 0.5) ? (2.0*c1*c2) : (1.0-2.0*(1.0-c1)*(1.0-c2));\n}\n\nvec3 blend_overlay(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*vec3(blend_overlay_f(c1.x, c2.x), blend_overlay_f(c1.y, c2.y), blend_overlay_f(c1.z, c2.z)) + (1.0-opacity)*c2;\n}\n\nvec3 blend_hard_light(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*0.5*(c1*c2+blend_overlay(uv, c1, c2, 1.0)) + (1.0-opacity)*c2;\n}\n\nfloat blend_soft_light_f(float c1, float c2) {\n\treturn (c2 < 0.5) ? (2.0*c1*c2+c1*c1*(1.0-2.0*c2)) : 2.0*c1*(1.0-c2)+sqrt(c1)*(2.0*c2-1.0);\n}\n\nvec3 blend_soft_light(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*vec3(blend_soft_light_f(c1.x, c2.x), blend_soft_light_f(c1.y, c2.y), blend_soft_light_f(c1.z, c2.z)) + (1.0-opacity)*c2;\n}\n\nfloat blend_burn_f(float c1, float c2) {\n\treturn (c1==0.0)?c1:max((1.0-((1.0-c2)/c1)),0.0);\n}\n\nvec3 blend_burn(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*vec3(blend_burn_f(c1.x, c2.x), blend_burn_f(c1.y, c2.y), blend_burn_f(c1.z, c2.z)) + (1.0-opacity)*c2;\n}\n\nfloat blend_dodge_f(float c1, float c2) {\n\treturn (c1==1.0)?c1:min(c2/(1.0-c1),1.0);\n}\n\nvec3 blend_dodge(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*vec3(blend_dodge_f(c1.x, c2.x), blend_dodge_f(c1.y, c2.y), blend_dodge_f(c1.z, c2.z)) + (1.0-opacity)*c2;\n}\n\nvec3 blend_lighten(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*max(c1, c2) + (1.0-opacity)*c2;\n}\n\nvec3 blend_darken(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*min(c1, c2) + (1.0-opacity)*c2;\n}\n\nvec3 blend_difference(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*clamp(c2-c1, vec3(0.0), vec3(1.0)) + (1.0-opacity)*c2;\n}\n","inputs":[{"default":"vec4($uv.x, 1.0, 1.0, 1.0)","label":"Source1","name":"s1","type":"rgba"},{"default":"vec4(1.0, $uv.y, 1.0, 1.0)","label":"Source2","name":"s2","type":"rgba"},{"default":"1.0","label":"Opacity","name":"a","type":"f"}],"instance":"","name":"Blend","outputs":[{"rgba":"vec4(blend_$blend_type($uv, $s1($uv).rgb, $s2($uv).rgb, $amount*$a($uv)*$s1($uv).a), min(1.0, $s2($uv).a+$amount*$a($uv)*$s1($uv).a))","type":"rgba"}],"parameters":[{"default":0,"label":"","name":"blend_type","type":"enum","values":[{"name":"Normal","value":"normal"},{"name":"Dissolve","value":"dissolve"},{"name":"Multiply","value":"multiply"},{"name":"Screen","value":"screen"},{"name":"Overlay","value":"overlay"},{"name":"Hard Light","value":"hard_light"},{"name":"Soft Light","value":"soft_light"},{"name":"Burn","value":"burn"},{"name":"Dodge","value":"dodge"},{"name":"Lighten","value":"lighten"},{"name":"Darken","value":"darken"},{"name":"Difference","value":"difference"}]},{"default":0.5,"label":"3:","max":1,"min":0,"name":"amount","step":0,"type":"float"}]}}
{
"name": "blend",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"amount": 0.935642,
"blend_type": 0
},
"shader_model": {
"global": "vec3 blend_normal(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*c1 + (1.0-opacity)*c2;\n}\n\nvec3 blend_dissolve(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\tif (rand(uv) < opacity) {\n\t\treturn c1;\n\t} else {\n\t\treturn c2;\n\t}\n}\n\nvec3 blend_multiply(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*c1*c2 + (1.0-opacity)*c2;\n}\n\nvec3 blend_screen(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*(1.0-(1.0-c1)*(1.0-c2)) + (1.0-opacity)*c2;\n}\n\nfloat blend_overlay_f(float c1, float c2) {\n\treturn (c1 < 0.5) ? (2.0*c1*c2) : (1.0-2.0*(1.0-c1)*(1.0-c2));\n}\n\nvec3 blend_overlay(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*vec3(blend_overlay_f(c1.x, c2.x), blend_overlay_f(c1.y, c2.y), blend_overlay_f(c1.z, c2.z)) + (1.0-opacity)*c2;\n}\n\nvec3 blend_hard_light(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*0.5*(c1*c2+blend_overlay(uv, c1, c2, 1.0)) + (1.0-opacity)*c2;\n}\n\nfloat blend_soft_light_f(float c1, float c2) {\n\treturn (c2 < 0.5) ? (2.0*c1*c2+c1*c1*(1.0-2.0*c2)) : 2.0*c1*(1.0-c2)+sqrt(c1)*(2.0*c2-1.0);\n}\n\nvec3 blend_soft_light(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*vec3(blend_soft_light_f(c1.x, c2.x), blend_soft_light_f(c1.y, c2.y), blend_soft_light_f(c1.z, c2.z)) + (1.0-opacity)*c2;\n}\n\nfloat blend_burn_f(float c1, float c2) {\n\treturn (c1==0.0)?c1:max((1.0-((1.0-c2)/c1)),0.0);\n}\n\nvec3 blend_burn(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*vec3(blend_burn_f(c1.x, c2.x), blend_burn_f(c1.y, c2.y), blend_burn_f(c1.z, c2.z)) + (1.0-opacity)*c2;\n}\n\nfloat blend_dodge_f(float c1, float c2) {\n\treturn (c1==1.0)?c1:min(c2/(1.0-c1),1.0);\n}\n\nvec3 blend_dodge(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*vec3(blend_dodge_f(c1.x, c2.x), blend_dodge_f(c1.y, c2.y), blend_dodge_f(c1.z, c2.z)) + (1.0-opacity)*c2;\n}\n\nvec3 blend_lighten(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*max(c1, c2) + (1.0-opacity)*c2;\n}\n\nvec3 blend_darken(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*min(c1, c2) + (1.0-opacity)*c2;\n}\n\nvec3 blend_difference(vec2 uv, vec3 c1, vec3 c2, float opacity) {\n\treturn opacity*clamp(c2-c1, vec3(0.0), vec3(1.0)) + (1.0-opacity)*c2;\n}\n",
"inputs": [
{
"default": "vec4($uv.x, 1.0, 1.0, 1.0)",
"label": "Source1",
"name": "s1",
"type": "rgba"
},
{
"default": "vec4(1.0, $uv.y, 1.0, 1.0)",
"label": "Source2",
"name": "s2",
"type": "rgba"
},
{
"default": "1.0",
"label": "Opacity",
"name": "a",
"type": "f"
}
],
"instance": "",
"name": "Blend",
"outputs": [
{
"rgba": "vec4(blend_$blend_type($uv, $s1($uv).rgb, $s2($uv).rgb, $amount*$a($uv)*$s1($uv).a), min(1.0, $s2($uv).a+$amount*$a($uv)*$s1($uv).a))",
"type": "rgba"
}
],
"parameters": [
{
"default": 0,
"label": "",
"name": "blend_type",
"type": "enum",
"values": [
{
"name": "Normal",
"value": "normal"
},
{
"name": "Dissolve",
"value": "dissolve"
},
{
"name": "Multiply",
"value": "multiply"
},
{
"name": "Screen",
"value": "screen"
},
{
"name": "Overlay",
"value": "overlay"
},
{
"name": "Hard Light",
"value": "hard_light"
},
{
"name": "Soft Light",
"value": "soft_light"
},
{
"name": "Burn",
"value": "burn"
},
{
"name": "Dodge",
"value": "dodge"
},
{
"name": "Lighten",
"value": "lighten"
},
{
"name": "Darken",
"value": "darken"
},
{
"name": "Difference",
"value": "difference"
}
]
},
{
"default": 0.5,
"label": "3:",
"max": 1,
"min": 0,
"name": "amount",
"step": 0,
"type": "float"
}
]
}
}

View File

@ -1 +1,123 @@
{"name":"bricks","node_position":{"x":0,"y":0},"parameters":{"bevel":0.1,"columns":3,"mortar":0.1,"pattern":0,"repeat":1,"row_offset":0.5,"rows":6},"shader_model":{"code":"vec3 $(name_uv) = $(name)_xyz($(uv));\n","global":"vec3 brick(vec2 uv, vec2 bmin, vec2 bmax, float mortar, float bevel) {\n\tfloat color = 0.5;\n\tvec2 c1 = (uv-bmin-vec2(mortar))/bevel;\n\tvec2 c2 = (bmax-uv-vec2(mortar))/bevel;\n\tvec2 c = min(c1, c2);\n\tcolor = clamp(min(c.x, c.y), 0.0, 1.0);\n\treturn vec3(color, mod(bmin, vec2(1.0, 1.0)));\n}\n\nvec3 bricks_rb(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tcount *= repeat;\n\tmortar /= max(count.x, count.y);\n\tbevel /= max(count.x, count.y);\n\tfloat x_offset = offset*step(0.5, fract(uv.y*count.y*0.5));\n\tvec2 bmin = floor(vec2(uv.x*count.x-x_offset, uv.y*count.y));\n\tbmin.x += x_offset;\n\tbmin /= count;\n\treturn brick(uv, bmin, bmin+vec2(1.0)/count, mortar, bevel);\n}\n\nvec3 bricks_rb2(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tcount *= repeat;\n\tmortar /= max(2.0*count.x, count.y);\n\tbevel /= max(2.0*count.x, count.y);\n\tfloat x_offset = offset*step(0.5, fract(uv.y*count.y*0.5));\n\tcount.x = count.x*(1.0+step(0.5, fract(uv.y*count.y*0.5)));\n\tvec2 bmin = floor(vec2(uv.x*count.x-x_offset, uv.y*count.y));\n\tbmin.x += x_offset;\n\tbmin /= count;\n\treturn brick(uv, bmin, bmin+vec2(1.0)/count, mortar, bevel);\n}\n\nvec3 bricks_hb(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tfloat pc = count.x+count.y;\n\tfloat c = pc*repeat;\n\tmortar /= c;\n\tbevel /= c;\n\tvec2 corner = floor(uv*c);\n\tfloat cdiff = mod(corner.x-corner.y, pc);\n\tif (cdiff < count.x) {\n\t\treturn brick(uv, (corner-vec2(cdiff, 0.0))/c, (corner-vec2(cdiff, 0.0)+vec2(count.x, 1.0))/c, mortar, bevel);\n\t} else {\n\t\treturn brick(uv, (corner-vec2(0.0, pc-cdiff-1.0))/c, (corner-vec2(0.0, pc-cdiff-1.0)+vec2(1.0, count.y))/c, mortar, bevel);\n\t}\n}\n\nvec3 bricks_bw(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tvec2 c = 2.0*count*repeat;\n\tfloat mc = max(c.x, c.y);\n\tmortar /= mc;\n\tbevel /= mc;\n\tvec2 corner1 = floor(uv*c);\n\tvec2 corner2 = count*floor(repeat*2.0*uv);\n\tfloat cdiff = mod(dot(floor(repeat*2.0*uv), vec2(1.0)), 2.0);\n\tvec2 corner;\n\tvec2 size;\n\tif (cdiff == 0.0) {\n\t\tcorner = vec2(corner1.x, corner2.y);\n\t\tsize = vec2(1.0, count.y);\n\t} else {\n\t\tcorner = vec2(corner2.x, corner1.y);\n\t\tsize = vec2(count.x, 1.0);\n\t}\n\treturn brick(uv, corner/c, (corner+size)/c, mortar, bevel);\n}\n\nvec3 bricks_sb(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tvec2 c = (count+vec2(1.0))*repeat;\n\tfloat mc = max(c.x, c.y);\n\tmortar /= mc;\n\tbevel /= mc;\n\tvec2 corner1 = floor(uv*c);\n\tvec2 corner2 = (count+vec2(1.0))*floor(repeat*uv);\n\tvec2 rcorner = corner1 - corner2;\n\tvec2 corner;\n\tvec2 size;\n\tif (rcorner.x == 0.0 && rcorner.y < count.y) {\n\t\tcorner = corner2;\n\t\tsize = vec2(1.0, count.y);\n\t} else if (rcorner.y == 0.0) {\n\t\tcorner = corner2+vec2(1.0, 0.0);\n\t\tsize = vec2(count.x, 1.0);\n\t} else if (rcorner.x == count.x) {\n\t\tcorner = corner2+vec2(count.x, 1.0);\n\t\tsize = vec2(1.0, count.y);\n\t} else if (rcorner.y == count.y) {\n\t\tcorner = corner2+vec2(0.0, count.y);\n\t\tsize = vec2(count.x, 1.0);\n\t} else {\n\t\tcorner = corner2+vec2(1.0);\n\t\tsize = vec2(count.x-1.0, count.y-1.0);\n\t}\n\treturn brick(uv, corner/c, (corner+size)/c, mortar, bevel);\n}","inputs":[],"instance":"vec3 $(name)_xyz(vec2 uv) {\n return bricks_$(pattern)(uv, vec2($(columns), $(rows)), $(repeat), $(row_offset), $(mortar), max(0.001, $(bevel)));\n}","name":"Bricks","outputs":[{"f":"$(name_uv).x","type":"f"},{"rgb":"rand3($(name_uv).yz+vec2($(seed)))","type":"rgb"}],"parameters":[{"default":0,"label":"","name":"pattern","type":"enum","values":[{"name":"Running bond","value":"rb"},{"name":"Running bond (2)","value":"rb2"},{"name":"HerringBone","value":"hb"},{"name":"Basket weave","value":"bw"},{"name":"Spanish bond","value":"sb"}]},{"default":1,"label":"Repeat:","max":8,"min":1,"name":"repeat","step":1,"type":"float","widget":"spinbox"},{"default":6,"label":"Rows:","max":64,"min":1,"name":"rows","step":1,"type":"float","widget":"spinbox"},{"default":3,"label":"Columns:","max":64,"min":1,"name":"columns","step":1,"type":"float","widget":"spinbox"},{"default":0.5,"label":"Offset:","max":1,"min":0,"name":"row_offset","step":0,"type":"float"},{"default":0.1,"label":"Mortar:","max":0.5,"min":0,"name":"mortar","step":0,"type":"float"},{"default":0.1,"label":"Bevel:","max":0.5,"min":0,"name":"bevel","step":0,"type":"float"}]},"type":"shader"}
{
"name": "bricks",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"bevel": 0.1,
"columns": 3,
"mortar": 0.1,
"pattern": 0,
"repeat": 1,
"row_offset": 0.5,
"rows": 6
},
"shader_model": {
"code": "vec3 $(name_uv) = $(name)_xyz($(uv));\n",
"global": "vec3 brick(vec2 uv, vec2 bmin, vec2 bmax, float mortar, float bevel) {\n\tfloat color = 0.5;\n\tvec2 c1 = (uv-bmin-vec2(mortar))/bevel;\n\tvec2 c2 = (bmax-uv-vec2(mortar))/bevel;\n\tvec2 c = min(c1, c2);\n\tcolor = clamp(min(c.x, c.y), 0.0, 1.0);\n\treturn vec3(color, mod(bmin, vec2(1.0, 1.0)));\n}\n\nvec3 bricks_rb(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tcount *= repeat;\n\tmortar /= max(count.x, count.y);\n\tbevel /= max(count.x, count.y);\n\tfloat x_offset = offset*step(0.5, fract(uv.y*count.y*0.5));\n\tvec2 bmin = floor(vec2(uv.x*count.x-x_offset, uv.y*count.y));\n\tbmin.x += x_offset;\n\tbmin /= count;\n\treturn brick(uv, bmin, bmin+vec2(1.0)/count, mortar, bevel);\n}\n\nvec3 bricks_rb2(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tcount *= repeat;\n\tmortar /= max(2.0*count.x, count.y);\n\tbevel /= max(2.0*count.x, count.y);\n\tfloat x_offset = offset*step(0.5, fract(uv.y*count.y*0.5));\n\tcount.x = count.x*(1.0+step(0.5, fract(uv.y*count.y*0.5)));\n\tvec2 bmin = floor(vec2(uv.x*count.x-x_offset, uv.y*count.y));\n\tbmin.x += x_offset;\n\tbmin /= count;\n\treturn brick(uv, bmin, bmin+vec2(1.0)/count, mortar, bevel);\n}\n\nvec3 bricks_hb(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tfloat pc = count.x+count.y;\n\tfloat c = pc*repeat;\n\tmortar /= c;\n\tbevel /= c;\n\tvec2 corner = floor(uv*c);\n\tfloat cdiff = mod(corner.x-corner.y, pc);\n\tif (cdiff < count.x) {\n\t\treturn brick(uv, (corner-vec2(cdiff, 0.0))/c, (corner-vec2(cdiff, 0.0)+vec2(count.x, 1.0))/c, mortar, bevel);\n\t} else {\n\t\treturn brick(uv, (corner-vec2(0.0, pc-cdiff-1.0))/c, (corner-vec2(0.0, pc-cdiff-1.0)+vec2(1.0, count.y))/c, mortar, bevel);\n\t}\n}\n\nvec3 bricks_bw(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tvec2 c = 2.0*count*repeat;\n\tfloat mc = max(c.x, c.y);\n\tmortar /= mc;\n\tbevel /= mc;\n\tvec2 corner1 = floor(uv*c);\n\tvec2 corner2 = count*floor(repeat*2.0*uv);\n\tfloat cdiff = mod(dot(floor(repeat*2.0*uv), vec2(1.0)), 2.0);\n\tvec2 corner;\n\tvec2 size;\n\tif (cdiff == 0.0) {\n\t\tcorner = vec2(corner1.x, corner2.y);\n\t\tsize = vec2(1.0, count.y);\n\t} else {\n\t\tcorner = vec2(corner2.x, corner1.y);\n\t\tsize = vec2(count.x, 1.0);\n\t}\n\treturn brick(uv, corner/c, (corner+size)/c, mortar, bevel);\n}\n\nvec3 bricks_sb(vec2 uv, vec2 count, float repeat, float offset, float mortar, float bevel) {\n\tvec2 c = (count+vec2(1.0))*repeat;\n\tfloat mc = max(c.x, c.y);\n\tmortar /= mc;\n\tbevel /= mc;\n\tvec2 corner1 = floor(uv*c);\n\tvec2 corner2 = (count+vec2(1.0))*floor(repeat*uv);\n\tvec2 rcorner = corner1 - corner2;\n\tvec2 corner;\n\tvec2 size;\n\tif (rcorner.x == 0.0 && rcorner.y < count.y) {\n\t\tcorner = corner2;\n\t\tsize = vec2(1.0, count.y);\n\t} else if (rcorner.y == 0.0) {\n\t\tcorner = corner2+vec2(1.0, 0.0);\n\t\tsize = vec2(count.x, 1.0);\n\t} else if (rcorner.x == count.x) {\n\t\tcorner = corner2+vec2(count.x, 1.0);\n\t\tsize = vec2(1.0, count.y);\n\t} else if (rcorner.y == count.y) {\n\t\tcorner = corner2+vec2(0.0, count.y);\n\t\tsize = vec2(count.x, 1.0);\n\t} else {\n\t\tcorner = corner2+vec2(1.0);\n\t\tsize = vec2(count.x-1.0, count.y-1.0);\n\t}\n\treturn brick(uv, corner/c, (corner+size)/c, mortar, bevel);\n}",
"inputs": [
],
"instance": "vec3 $(name)_xyz(vec2 uv) {\n return bricks_$(pattern)(uv, vec2($(columns), $(rows)), $(repeat), $(row_offset), $(mortar), max(0.001, $(bevel)));\n}",
"name": "Bricks",
"outputs": [
{
"f": "$(name_uv).x",
"type": "f"
},
{
"rgb": "rand3($(name_uv).yz+vec2($(seed)))",
"type": "rgb"
}
],
"parameters": [
{
"default": 0,
"label": "",
"name": "pattern",
"type": "enum",
"values": [
{
"name": "Running bond",
"value": "rb"
},
{
"name": "Running bond (2)",
"value": "rb2"
},
{
"name": "HerringBone",
"value": "hb"
},
{
"name": "Basket weave",
"value": "bw"
},
{
"name": "Spanish bond",
"value": "sb"
}
]
},
{
"default": 1,
"label": "Repeat:",
"max": 8,
"min": 1,
"name": "repeat",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 6,
"label": "Rows:",
"max": 64,
"min": 1,
"name": "rows",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 3,
"label": "Columns:",
"max": 64,
"min": 1,
"name": "columns",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 0.5,
"label": "Offset:",
"max": 1,
"min": 0,
"name": "row_offset",
"step": 0,
"type": "float"
},
{
"default": 0.1,
"label": "Mortar:",
"max": 0.5,
"min": 0,
"name": "mortar",
"step": 0,
"type": "float"
},
{
"default": 0.1,
"label": "Bevel:",
"max": 0.5,
"min": 0,
"name": "bevel",
"step": 0,
"type": "float"
}
]
},
"type": "shader"
}

View File

@ -1 +1,34 @@
{"name":"circle_map","node_position":{"x":0,"y":0},"parameters":{},"shader_model":{"code":"","global":"","inputs":[{"default":"vec4($uv, 0.0, 1.0)","label":"","name":"in","type":"rgba"}],"instance":"","name":"CircleMap","outputs":[{"rgba":"$in(vec2(fract(atan($uv.y-0.5, $uv.x-0.5)*0.15915494309), min(0.99999, 2.0*length($uv-vec2(0.5)))))","type":"rgba"}],"parameters":[]},"type":"shader"}
{
"name": "circle_map",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "vec4($uv, 0.0, 1.0)",
"label": "",
"name": "in",
"type": "rgba"
}
],
"instance": "",
"name": "CircleMap",
"outputs": [
{
"rgba": "$in(vec2(fract(atan($uv.y-0.5, $uv.x-0.5)*0.15915494309), min(0.99999, 2.0*length($uv-vec2(0.5)))))",
"type": "rgba"
}
],
"parameters": [
]
},
"type": "shader"
}

View File

@ -1 +1,72 @@
{"name":"colorize","node_position":{"x":0,"y":0},"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"}},"shader_model":{"global":"","inputs":[{"default":"$uv.x","label":"","name":"input","type":"f"}],"instance":"","name":"Colorize","outputs":[{"rgba":"$gradient($input($uv))"}],"parameters":[{"default":{"points":[{"a":1,"b":0,"g":0,"pos":0,"r":0},{"a":1,"b":1,"g":1,"pos":1,"r":1}],"type":"Gradient"},"label":"","name":"gradient","type":"gradient"}]}}
{
"name": "colorize",
"node_position": {
"x": 0,
"y": 0
},
"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"
}
},
"shader_model": {
"global": "",
"inputs": [
{
"default": "$uv.x",
"label": "",
"name": "input",
"type": "f"
}
],
"instance": "",
"name": "Colorize",
"outputs": [
{
"rgba": "$gradient($input($uv))"
}
],
"parameters": [
{
"default": {
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 1,
"r": 1
}
],
"type": "Gradient"
},
"label": "",
"name": "gradient",
"type": "gradient"
}
]
}
}

View File

@ -1 +1,56 @@
{"name":"combine","node_position":{"x":0,"y":0},"parameters":{"color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"},"name":0},"shader_model":{"global":"","inputs":[{"default":"0.0","label":"R","name":"r","type":"f"},{"default":"0.0","label":"G","name":"g","type":"f"},{"default":"0.0","label":"B","name":"b","type":"f"},{"default":"1.0","label":"A","name":"a","type":"f"}],"instance":"","name":"Combine","outputs":[{"rgba":"vec4($r($uv), $g($uv), $b($uv), $a($uv))"}],"parameters":[]}}
{
"name": "combine",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
},
"name": 0
},
"shader_model": {
"global": "",
"inputs": [
{
"default": "0.0",
"label": "R",
"name": "r",
"type": "f"
},
{
"default": "0.0",
"label": "G",
"name": "g",
"type": "f"
},
{
"default": "0.0",
"label": "B",
"name": "b",
"type": "f"
},
{
"default": "1.0",
"label": "A",
"name": "a",
"type": "f"
}
],
"instance": "",
"name": "Combine",
"outputs": [
{
"rgba": "vec4($r($uv), $g($uv), $b($uv), $a($uv))"
}
],
"parameters": [
]
}
}

View File

@ -1 +1,40 @@
{"name":"decompose","node_position":{"x":0,"y":0},"parameters":{},"shader_model":{"global":"","inputs":[{"default":"vec4(1.0)","label":"","name":"i","type":"rgba"}],"instance":"","name":"Decompose","outputs":[{"f":"$i($uv).r"},{"f":"$i($uv).g"},{"f":"$i($uv).b"},{"f":"$i($uv).a"}],"parameters":[]}}
{
"name": "decompose",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
},
"shader_model": {
"global": "",
"inputs": [
{
"default": "vec4(1.0)",
"label": "",
"name": "i",
"type": "rgba"
}
],
"instance": "",
"name": "Decompose",
"outputs": [
{
"f": "$i($uv).r"
},
{
"f": "$i($uv).g"
},
{
"f": "$i($uv).b"
},
{
"f": "$i($uv).a"
}
],
"parameters": [
]
}
}

View File

@ -0,0 +1,315 @@
{
"connections": [
{
"from": "gen_inputs",
"from_port": 0,
"to": "buffer",
"to_port": 0
},
{
"from": "buffer",
"from_port": 0,
"to": "transform_3",
"to_port": 0
},
{
"from": "transform_3",
"from_port": 0,
"to": "blurx_convolution",
"to_port": 0
},
{
"from": "blurx_convolution",
"from_port": 0,
"to": "transform_3_2",
"to_port": 0
},
{
"from": "transform_3_2",
"from_port": 1,
"to": "gen_outputs",
"to_port": 0
}
],
"label": "Directional Blur",
"name": "blur_directional",
"node_position": {
"x": 0,
"y": 0
},
"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": -412.5,
"y": -99.5
},
"parameters": {
"sigma": 50,
"size": 8
},
"type": "convolution"
},
{
"name": "buffer",
"node_position": {
"x": -410.25,
"y": -271.75
},
"parameters": {
"size": 8
},
"type": "buffer"
},
{
"name": "gen_parameters",
"node_position": {
"x": -436.666626,
"y": -413.666656
},
"parameters": {
"param0": 8,
"param1": 50,
"param2": 45
},
"type": "remote",
"widgets": [
{
"label": "Grid size:",
"linked_widgets": [
{
"node": "buffer",
"widget": "size"
},
{
"node": "blurx_convolution",
"widget": "size"
}
],
"name": "param0",
"type": "linked_control"
},
{
"label": "Sigma:",
"linked_widgets": [
{
"node": "blurx_convolution",
"widget": "sigma"
}
],
"name": "param1",
"type": "linked_control"
},
{
"label": "Unnamed",
"linked_widgets": [
{
"node": "transform_3",
"widget": "rotate"
},
{
"node": "transform_3_2",
"widget": "rotate"
}
],
"name": "param2",
"type": "linked_control"
}
]
},
{
"name": "gen_inputs",
"node_position": {
"x": -738.666626,
"y": -190.392853
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
},
{
"name": "gen_outputs",
"node_position": {
"x": -45.452393,
"y": -195.392853
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
},
{
"name": "transform_3",
"node_position": {
"x": -405.653931,
"y": -214.871338
},
"parameters": {
"repeat": true,
"rotate": 45,
"scale": 1.5,
"scale_x": 1,
"scale_y": 1,
"translate_x": 0,
"translate_y": 0
},
"shader_model": {
"code": "",
"global": "vec2 db_rotate(vec2 uv, float rotate, float scale) {\n \tvec2 rv;\n\tuv -= vec2(0.5);\n\trv.x = cos(rotate)*uv.x + sin(rotate)*uv.y;\n\trv.y = -sin(rotate)*uv.x + cos(rotate)*uv.y;\n\trv *= scale;\n\trv += vec2(0.5);\n\treturn fract(rv);\n}",
"inputs": [
{
"default": "vec4($uv, 0.0, 1.0)",
"label": "",
"name": "i",
"type": "rgba"
},
{
"default": "1.0",
"label": "",
"name": "r",
"type": "f"
}
],
"instance": "",
"name": "DBRotate",
"outputs": [
{
"rgba": "$i(db_rotate($uv, $rotate*0.01745329251*(2.0*$r($uv)-1.0), $scale))",
"type": "rgba"
},
{
"rgba": "$i(db_rotate($uv, -$rotate*0.01745329251*(2.0*$r($uv)-1.0), 1.0/$scale))",
"type": "rgba"
}
],
"parameters": [
{
"default": 0,
"label": "Rotate:",
"max": 720,
"min": -720,
"name": "rotate",
"step": 0.005,
"type": "float",
"widget": "spinbox"
},
{
"default": 1,
"label": "Label",
"max": 2,
"min": 0.1,
"name": "scale",
"step": 0.01,
"type": "float",
"widget": "spinbox"
}
]
},
"type": "shader"
},
{
"name": "transform_3_2",
"node_position": {
"x": -407.388733,
"y": -24.678955
},
"parameters": {
"repeat": true,
"rotate": 45,
"scale": 1.5,
"scale_x": 1,
"scale_y": 1,
"translate_x": 0,
"translate_y": 0
},
"shader_model": {
"code": "",
"global": "vec2 db_rotate(vec2 uv, float rotate, float scale) {\n \tvec2 rv;\n\tuv -= vec2(0.5);\n\trv.x = cos(rotate)*uv.x + sin(rotate)*uv.y;\n\trv.y = -sin(rotate)*uv.x + cos(rotate)*uv.y;\n\trv *= scale;\n\trv += vec2(0.5);\n\treturn fract(rv);\n}",
"inputs": [
{
"default": "vec4($uv, 0.0, 1.0)",
"label": "",
"name": "i",
"type": "rgba"
},
{
"default": "1.0",
"label": "",
"name": "r",
"type": "f"
}
],
"instance": "",
"name": "DBRotate",
"outputs": [
{
"rgba": "$i(db_rotate($uv, $rotate*0.01745329251*(2.0*$r($uv)-1.0), $scale))",
"type": "rgba"
},
{
"rgba": "$i(db_rotate($uv, -$rotate*0.01745329251*(2.0*$r($uv)-1.0), 1.0/$scale))",
"type": "rgba"
}
],
"parameters": [
{
"default": 0,
"label": "Rotate:",
"max": 720,
"min": -720,
"name": "rotate",
"step": 0.005,
"type": "float",
"widget": "spinbox"
},
{
"default": 1,
"label": "Label",
"max": 2,
"min": 0.1,
"name": "scale",
"step": 0.01,
"type": "float",
"widget": "spinbox"
}
]
},
"type": "shader"
}
],
"parameters": {
"param0": 8,
"param1": 50,
"param2": 45
},
"type": "graph"
}

View File

@ -1 +1,312 @@
{"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":"switch","from_port":0,"to":"buffer_2","to_port":0},{"from":"gen_inputs","from_port":0,"to":"buffer","to_port":0},{"from":"gen_inputs","from_port":0,"to":"switch","to_port":1},{"from":"blurx_convolution","from_port":0,"to":"switch","to_port":0},{"from":"switch_2","from_port":0,"to":"gen_outputs","to_port":0},{"from":"blurx_convolution_2","from_port":0,"to":"switch_2","to_port":0},{"from":"switch","from_port":0,"to":"switch_2","to_port":1}],"label":"Gaussian Blur","name":"gaussian_blur","node_position":{"x":0,"y":0},"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":-217.5},"parameters":{"sigma":10.175,"size":5},"type":"convolution"},{"name":"buffer_2","node_position":{"x":-408.875,"y":-90.625},"parameters":{"size":5},"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":10.175,"size":5},"type":"convolution"},{"name":"switch","node_position":{"x":-437.452393,"y":-147.166656},"parameters":{"choices":2,"outputs":1,"source":0},"type":"switch"},{"name":"switch_2","node_position":{"x":-323.452393,"y":-173.666656},"parameters":{"choices":2,"outputs":1,"source":0},"type":"switch"},{"name":"buffer","node_position":{"x":-408.25,"y":-265.75},"parameters":{"size":5},"type":"buffer"},{"name":"gen_parameters","node_position":{"x":-438.666626,"y":-391.666656},"parameters":{"param0":5,"param1":10.175,"param2":0},"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"}],"type":"linked_control"},{"label":"Sigma:","linked_widgets":[{"node":"blurx_convolution","widget":"sigma"},{"node":"blurx_convolution_2","widget":"sigma"}],"type":"linked_control"},{"configurations":{"Both":[{"node":"switch","value":0,"widget":"source"},{"node":"switch_2","value":0,"widget":"source"}],"X":[{"node":"switch","value":0,"widget":"source"},{"node":"switch_2","value":1,"widget":"source"}],"Y":[{"node":"switch","value":1,"widget":"source"},{"node":"switch_2","value":0,"widget":"source"}]},"label":"Direction:","linked_widgets":[{"node":"switch","widget":"source"},{"node":"switch_2","widget":"source"}],"type":"config_control"}]},{"name":"gen_inputs","node_position":{"x":-738.666626,"y":-190.392853},"parameters":{},"ports":[{"name":"port0","type":"rgba"}],"type":"ios"},{"name":"gen_outputs","node_position":{"x":-23.452393,"y":-190.392853},"parameters":{},"ports":[{"name":"port0","type":"rgba"}],"type":"ios"}],"parameters":{"param0":5,"param2":0},"type":"graph"}
{
"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": "switch",
"from_port": 0,
"to": "buffer_2",
"to_port": 0
},
{
"from": "gen_inputs",
"from_port": 0,
"to": "buffer",
"to_port": 0
},
{
"from": "gen_inputs",
"from_port": 0,
"to": "switch",
"to_port": 1
},
{
"from": "blurx_convolution",
"from_port": 0,
"to": "switch",
"to_port": 0
},
{
"from": "switch_2",
"from_port": 0,
"to": "gen_outputs",
"to_port": 0
},
{
"from": "blurx_convolution_2",
"from_port": 0,
"to": "switch_2",
"to_port": 0
},
{
"from": "switch",
"from_port": 0,
"to": "switch_2",
"to_port": 1
}
],
"label": "Gaussian Blur",
"name": "gaussian_blur",
"node_position": {
"x": 0,
"y": 0
},
"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": -217.5
},
"parameters": {
"sigma": 10.175,
"size": 5
},
"type": "convolution"
},
{
"name": "buffer_2",
"node_position": {
"x": -408.875,
"y": -90.625
},
"parameters": {
"size": 5
},
"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": 10.175,
"size": 5
},
"type": "convolution"
},
{
"name": "switch",
"node_position": {
"x": -437.452393,
"y": -147.166656
},
"parameters": {
"choices": 2,
"outputs": 1,
"source": 0
},
"type": "switch"
},
{
"name": "switch_2",
"node_position": {
"x": -323.452393,
"y": -173.666656
},
"parameters": {
"choices": 2,
"outputs": 1,
"source": 0
},
"type": "switch"
},
{
"name": "buffer",
"node_position": {
"x": -408.25,
"y": -265.75
},
"parameters": {
"size": 5
},
"type": "buffer"
},
{
"name": "gen_parameters",
"node_position": {
"x": -438.666626,
"y": -391.666656
},
"parameters": {
"param0": 5,
"param1": 10.175,
"param2": 0
},
"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"
}
],
"type": "linked_control"
},
{
"label": "Sigma:",
"linked_widgets": [
{
"node": "blurx_convolution",
"widget": "sigma"
},
{
"node": "blurx_convolution_2",
"widget": "sigma"
}
],
"type": "linked_control"
},
{
"configurations": {
"Both": [
{
"node": "switch",
"value": 0,
"widget": "source"
},
{
"node": "switch_2",
"value": 0,
"widget": "source"
}
],
"X": [
{
"node": "switch",
"value": 0,
"widget": "source"
},
{
"node": "switch_2",
"value": 1,
"widget": "source"
}
],
"Y": [
{
"node": "switch",
"value": 1,
"widget": "source"
},
{
"node": "switch_2",
"value": 0,
"widget": "source"
}
]
},
"label": "Direction:",
"linked_widgets": [
{
"node": "switch",
"widget": "source"
},
{
"node": "switch_2",
"widget": "source"
}
],
"type": "config_control"
}
]
},
{
"name": "gen_inputs",
"node_position": {
"x": -738.666626,
"y": -190.392853
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
},
{
"name": "gen_outputs",
"node_position": {
"x": -23.452393,
"y": -190.392853
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
}
],
"parameters": {
"param0": 5,
"param2": 0
},
"type": "graph"
}

View File

@ -353,7 +353,7 @@ func do_save_generator(file_name : String) -> void:
var data = generator.serialize()
data.name = file_name.get_file().get_basename()
data.node_position = { x=0, y=0 }
file.store_string(to_json(data))
file.store_string(JSON.print(data, "\t", true))
file.close()
func update_preview_buttons(index : int) -> void:
@ -399,7 +399,3 @@ func do_update_preview() -> void:
add_child(preview)
move_child(preview, preview_position)
preview.visible = true

View File

@ -1 +1,55 @@
{"name":"kaleidoscope","node_position":{"x":0,"y":0},"parameters":{"count":7,"direction":0,"offset":0},"shader_model":{"code":"","global":"vec2 kal_rotate(vec2 uv, float count, float offset) {\n\tfloat pi = 3.14159265359;\n\toffset *= pi/180.0;\n\toffset += pi*(1.0/count+0.5);\n\tuv -= vec2(0.5);\n\tfloat l = length(uv);\n\tfloat a = mod(atan(uv.y, uv.x)+offset, 2.0*pi/count)-offset;\n\treturn vec2(0.5)+l*vec2(cos(a), sin(a));\n}","inputs":[{"default":"vec4($uv, 0, 1)","label":"","name":"i","type":"rgba"}],"instance":"","name":"Kaleidoscope","outputs":[{"rgba":"$i(kal_rotate($uv, $count, $offset))","type":"rgba"}],"parameters":[{"default":0,"label":"","max":10,"min":2,"name":"count","step":1,"type":"float","widget":"spinbox"},{"default":0,"label":"","max":180,"min":-180,"name":"offset","step":0.1,"type":"float","widget":"spinbox"}]},"type":"shader"}
{
"name": "kaleidoscope",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"count": 7,
"direction": 0,
"offset": 0
},
"shader_model": {
"code": "",
"global": "vec2 kal_rotate(vec2 uv, float count, float offset) {\n\tfloat pi = 3.14159265359;\n\toffset *= pi/180.0;\n\toffset += pi*(1.0/count+0.5);\n\tuv -= vec2(0.5);\n\tfloat l = length(uv);\n\tfloat a = mod(atan(uv.y, uv.x)+offset, 2.0*pi/count)-offset;\n\treturn vec2(0.5)+l*vec2(cos(a), sin(a));\n}",
"inputs": [
{
"default": "vec4($uv, 0, 1)",
"label": "",
"name": "i",
"type": "rgba"
}
],
"instance": "",
"name": "Kaleidoscope",
"outputs": [
{
"rgba": "$i(kal_rotate($uv, $count, $offset))",
"type": "rgba"
}
],
"parameters": [
{
"default": 0,
"label": "",
"max": 10,
"min": 2,
"name": "count",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 0,
"label": "",
"max": 180,
"min": -180,
"name": "offset",
"step": 0.1,
"type": "float",
"widget": "spinbox"
}
]
},
"type": "shader"
}

View File

@ -1 +1,58 @@
{"name":"mirror","node_position":{"x":0,"y":0},"parameters":{"direction":0,"offset":0.605},"shader_model":{"global":"vec2 uvmirror_h(vec2 uv, float offset) {\n\treturn vec2(max(0, abs(uv.x-0.5)-0.5*offset)+0.5, uv.y);\n}\nvec2 uvmirror_v(vec2 uv, float offset) {\n\treturn vec2(uv.x, max(0, abs(uv.y-0.5)-0.5*offset)+0.5);\n}","inputs":[{"default":"vec4($uv, 0, 1)","label":"","name":"i","type":"rgba"}],"instance":"","name":"Mirror","outputs":[{"rgba":"$i(uvmirror_$direction($uv, $offset))","type":"rgba"}],"parameters":[{"default":0,"label":"","name":"direction","type":"enum","values":[{"name":"Horizontal","value":"h"},{"name":"Vertical","value":"v"}]},{"default":0,"label":"","max":1,"min":0,"name":"offset","step":0.005,"type":"float","widget":"spinbox"}]}}
{
"name": "mirror",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"direction": 0,
"offset": 0.605
},
"shader_model": {
"global": "vec2 uvmirror_h(vec2 uv, float offset) {\n\treturn vec2(max(0, abs(uv.x-0.5)-0.5*offset)+0.5, uv.y);\n}\nvec2 uvmirror_v(vec2 uv, float offset) {\n\treturn vec2(uv.x, max(0, abs(uv.y-0.5)-0.5*offset)+0.5);\n}",
"inputs": [
{
"default": "vec4($uv, 0, 1)",
"label": "",
"name": "i",
"type": "rgba"
}
],
"instance": "",
"name": "Mirror",
"outputs": [
{
"rgba": "$i(uvmirror_$direction($uv, $offset))",
"type": "rgba"
}
],
"parameters": [
{
"default": 0,
"label": "",
"name": "direction",
"type": "enum",
"values": [
{
"name": "Horizontal",
"value": "h"
},
{
"name": "Vertical",
"value": "v"
}
]
},
{
"default": 0,
"label": "",
"max": 1,
"min": 0,
"name": "offset",
"step": 0.005,
"type": "float",
"widget": "spinbox"
}
]
}
}

View File

@ -1 +1,40 @@
{"name":"noise","node_position":{"x":0,"y":0},"parameters":{"density":0.5,"size":8},"shader_model":{"global":"float dots(vec2 uv, float size, float density, int seed) {\n\tvec2 seed2 = rand2(vec2(float(seed), 1.0-float(seed)));\n\tuv /= size;\n\tvec2 point_pos = floor(uv)+vec2(0.5);\n\tfloat color = step(rand(seed2+point_pos), density);\n return color;\n}","instance":"\n\t\tfloat $(name)_f(vec2 uv) {\n\t\t\treturn dots(uv, 1.0/$(size), $(density), $(seed));\n\t\t}","name":"Noise","outputs":[{"f":"$(name)_f($(uv))"}],"parameters":[{"default":8,"first":2,"label":"Grid Size:","last":8,"name":"size","type":"size"},{"default":0.5,"label":"Density:","max":1,"min":0,"name":"density","step":0,"type":"float"}]}}
{
"name": "noise",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"density": 0.5,
"size": 8
},
"shader_model": {
"global": "float dots(vec2 uv, float size, float density, int seed) {\n\tvec2 seed2 = rand2(vec2(float(seed), 1.0-float(seed)));\n\tuv /= size;\n\tvec2 point_pos = floor(uv)+vec2(0.5);\n\tfloat color = step(rand(seed2+point_pos), density);\n return color;\n}",
"instance": "\n\t\tfloat $(name)_f(vec2 uv) {\n\t\t\treturn dots(uv, 1.0/$(size), $(density), $(seed));\n\t\t}",
"name": "Noise",
"outputs": [
{
"f": "$(name)_f($(uv))"
}
],
"parameters": [
{
"default": 8,
"first": 2,
"label": "Grid Size:",
"last": 8,
"name": "size",
"type": "size"
},
{
"default": 0.5,
"label": "Density:",
"max": 1,
"min": 0,
"name": "density",
"step": 0,
"type": "float"
}
]
}
}

View File

@ -1 +1,286 @@
{"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":0,"y":0},"nodes":[{"name":"buffer","node_position":{"x":-687.663818,"y":125.60614},"parameters":{"size":10},"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":10},"type":"convolution"},{"name":"nm_postprocess","node_position":{"x":-690.25,"y":222.25},"parameters":{"amount":1.02,"format":0,"size":10,"type":0},"shader_model":{"code":"","global":"vec3 process_normal_default(vec3 v, float multiplier) {\n\treturn 0.5*normalize(v.xyz*multiplier+vec3(0.0, 0.0, -1.0))+vec3(0.5);\n}\n\nvec3 process_normal_opengl(vec3 v, float multiplier) {\n\treturn 0.5*normalize(v.xyz*multiplier+vec3(0.0, 0.0, 1.0))+vec3(0.5);\n}\n\nvec3 process_normal_directx(vec3 v, float multiplier) {\n\treturn 0.5*normalize(v.xyz*vec3(1.0, -1.0, 1.0)*multiplier+vec3(0.0, 0.0, 1.0))+vec3(0.5);\n}\n","inputs":[{"default":"vec3(0.0)","label":"","name":"in","type":"rgb"}],"instance":"","name":"NormalMapPostProcess","outputs":[{"rgb":"process_normal_$format($in($uv).xyz, $amount*$size/128.0)","type":"rgb"}],"parameters":[{"default":0,"label":"","name":"format","type":"enum","values":[{"name":"Default","value":"default"},{"name":"OpenGL","value":"opengl"},{"name":"DirectX","value":"directx"}]},{"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":-729.910156,"y":-5.916687},"parameters":{"amount":0.5,"param0":10,"param1":1.02,"param2":0,"size":4},"type":"remote","widgets":[{"label":"","linked_widgets":[{"node":"nm_postprocess","widget":"format"}],"name":"param2","type":"linked_control"},{"label":"","linked_widgets":[{"node":"buffer","widget":"size"},{"node":"nm_convolution","widget":"size"},{"node":"nm_postprocess","widget":"size"}],"name":"param0","type":"linked_control"},{"label":"","linked_widgets":[{"node":"nm_postprocess","widget":"amount"}],"name":"param1","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":{"amount":0.5,"param0":10,"param1":1.02,"param2":0,"size":4},"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": 0,
"y": 0
},
"nodes": [
{
"name": "buffer",
"node_position": {
"x": -687.663818,
"y": 125.60614
},
"parameters": {
"size": 10
},
"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": 10
},
"type": "convolution"
},
{
"name": "nm_postprocess",
"node_position": {
"x": -690.25,
"y": 222.25
},
"parameters": {
"amount": 1.02,
"format": 0,
"size": 10,
"type": 0
},
"shader_model": {
"code": "",
"global": "vec3 process_normal_default(vec3 v, float multiplier) {\n\treturn 0.5*normalize(v.xyz*multiplier+vec3(0.0, 0.0, -1.0))+vec3(0.5);\n}\n\nvec3 process_normal_opengl(vec3 v, float multiplier) {\n\treturn 0.5*normalize(v.xyz*multiplier+vec3(0.0, 0.0, 1.0))+vec3(0.5);\n}\n\nvec3 process_normal_directx(vec3 v, float multiplier) {\n\treturn 0.5*normalize(v.xyz*vec3(1.0, -1.0, 1.0)*multiplier+vec3(0.0, 0.0, 1.0))+vec3(0.5);\n}\n",
"inputs": [
{
"default": "vec3(0.0)",
"label": "",
"name": "in",
"type": "rgb"
}
],
"instance": "",
"name": "NormalMapPostProcess",
"outputs": [
{
"rgb": "process_normal_$format($in($uv).xyz, $amount*$size/128.0)",
"type": "rgb"
}
],
"parameters": [
{
"default": 0,
"label": "",
"name": "format",
"type": "enum",
"values": [
{
"name": "Default",
"value": "default"
},
{
"name": "OpenGL",
"value": "opengl"
},
{
"name": "DirectX",
"value": "directx"
}
]
},
{
"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": -729.910156,
"y": -5.916687
},
"parameters": {
"amount": 0.5,
"param0": 10,
"param1": 1.02,
"param2": 0,
"size": 4
},
"type": "remote",
"widgets": [
{
"label": "",
"linked_widgets": [
{
"node": "nm_postprocess",
"widget": "format"
}
],
"name": "param2",
"type": "linked_control"
},
{
"label": "",
"linked_widgets": [
{
"node": "buffer",
"widget": "size"
},
{
"node": "nm_convolution",
"widget": "size"
},
{
"node": "nm_postprocess",
"widget": "size"
}
],
"name": "param0",
"type": "linked_control"
},
{
"label": "",
"linked_widgets": [
{
"node": "nm_postprocess",
"widget": "amount"
}
],
"name": "param1",
"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": {
"amount": 0.5,
"param0": 10,
"param1": 1.02,
"param2": 0,
"size": 4
},
"type": "graph"
}

View File

@ -1 +1,148 @@
{"name":"pattern","node_position":{"x":0,"y":0},"parameters":{"mix":0,"x_scale":4,"x_wave":0,"y_scale":4,"y_wave":0},"shader_model":{"code":"","global":"float wave_constant(float x) {\n\treturn 1.0;\n}\n\nfloat wave_sine(float x) {\n\treturn 0.5-0.5*cos(3.14159265359*2.0*x);\n}\n\nfloat wave_triangle(float x) {\n\tx = fract(x);\n\treturn min(2.0*x, 2.0-2.0*x);\n}\n\nfloat wave_sawtooth(float x) {\n\treturn fract(x);\n}\n\nfloat wave_square(float x) {\n\treturn (fract(x) < 0.5) ? 0.0 : 1.0;\n}\n\nfloat wave_bounce(float x) {\n\tx = 2.0*(fract(x)-0.5);\n\treturn sqrt(1.0-x*x);\n}\n\nfloat mix_mul(float x, float y) {\n\treturn x*y;\n}\n\nfloat mix_add(float x, float y) {\n\treturn min(x+y, 1.0);\n}\n\nfloat mix_max(float x, float y) {\n\treturn max(x, y);\n}\n\nfloat mix_min(float x, float y) {\n\treturn min(x, y);\n}\n\nfloat mix_xor(float x, float y) {\n\treturn min(x+y, 2.0-x-y);\n}\n\nfloat mix_pow(float x, float y) {\n\treturn pow(x, y);\n}","inputs":[],"instance":"float $(name)_fct(vec2 uv) {\n\treturn mix_$(mix)(wave_$(x_wave)($(x_scale)*uv.x), wave_$(y_wave)($(y_scale)*uv.y));\n}","name":"Pattern","outputs":[{"f":"$(name)_fct($(uv))","type":"f"}],"parameters":[{"default":0,"label":"Combiner","name":"mix","type":"enum","values":[{"name":"Multiply","value":"mul"},{"name":"Add","value":"add"},{"name":"Max","value":"max"},{"name":"Min","value":"min"},{"name":"Xor","value":"xor"},{"name":"Pow","value":"pow"}]},{"default":5,"label":"X","name":"x_wave","type":"enum","values":[{"name":"Sine","value":"sine"},{"name":"Triangle","value":"triangle"},{"name":"Square","value":"square"},{"name":"Sawtooth","value":"sawtooth"},{"name":"Constant","value":"constant"},{"name":"Bounce","value":"bounce"}]},{"default":4,"label":"2:","max":32,"min":0,"name":"x_scale","step":1,"type":"float","widget":"spinbox"},{"default":5,"label":"Y","name":"y_wave","type":"enum","values":[{"name":"Sine","value":"sine"},{"name":"Triangle","value":"triangle"},{"name":"Square","value":"square"},{"name":"Sawtooth","value":"sawtooth"},{"name":"Constant","value":"constant"},{"name":"Bounce","value":"bounce"}]},{"default":4,"label":"3:","max":32,"min":0,"name":"y_scale","step":1,"type":"float","widget":"spinbox"}]},"type":"shader"}
{
"name": "pattern",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"mix": 0,
"x_scale": 4,
"x_wave": 0,
"y_scale": 4,
"y_wave": 0
},
"shader_model": {
"code": "",
"global": "float wave_constant(float x) {\n\treturn 1.0;\n}\n\nfloat wave_sine(float x) {\n\treturn 0.5-0.5*cos(3.14159265359*2.0*x);\n}\n\nfloat wave_triangle(float x) {\n\tx = fract(x);\n\treturn min(2.0*x, 2.0-2.0*x);\n}\n\nfloat wave_sawtooth(float x) {\n\treturn fract(x);\n}\n\nfloat wave_square(float x) {\n\treturn (fract(x) < 0.5) ? 0.0 : 1.0;\n}\n\nfloat wave_bounce(float x) {\n\tx = 2.0*(fract(x)-0.5);\n\treturn sqrt(1.0-x*x);\n}\n\nfloat mix_mul(float x, float y) {\n\treturn x*y;\n}\n\nfloat mix_add(float x, float y) {\n\treturn min(x+y, 1.0);\n}\n\nfloat mix_max(float x, float y) {\n\treturn max(x, y);\n}\n\nfloat mix_min(float x, float y) {\n\treturn min(x, y);\n}\n\nfloat mix_xor(float x, float y) {\n\treturn min(x+y, 2.0-x-y);\n}\n\nfloat mix_pow(float x, float y) {\n\treturn pow(x, y);\n}",
"inputs": [
],
"instance": "float $(name)_fct(vec2 uv) {\n\treturn mix_$(mix)(wave_$(x_wave)($(x_scale)*uv.x), wave_$(y_wave)($(y_scale)*uv.y));\n}",
"name": "Pattern",
"outputs": [
{
"f": "$(name)_fct($(uv))",
"type": "f"
}
],
"parameters": [
{
"default": 0,
"label": "Combiner",
"name": "mix",
"type": "enum",
"values": [
{
"name": "Multiply",
"value": "mul"
},
{
"name": "Add",
"value": "add"
},
{
"name": "Max",
"value": "max"
},
{
"name": "Min",
"value": "min"
},
{
"name": "Xor",
"value": "xor"
},
{
"name": "Pow",
"value": "pow"
}
]
},
{
"default": 5,
"label": "X",
"name": "x_wave",
"type": "enum",
"values": [
{
"name": "Sine",
"value": "sine"
},
{
"name": "Triangle",
"value": "triangle"
},
{
"name": "Square",
"value": "square"
},
{
"name": "Sawtooth",
"value": "sawtooth"
},
{
"name": "Constant",
"value": "constant"
},
{
"name": "Bounce",
"value": "bounce"
}
]
},
{
"default": 4,
"label": "2:",
"max": 32,
"min": 0,
"name": "x_scale",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 5,
"label": "Y",
"name": "y_wave",
"type": "enum",
"values": [
{
"name": "Sine",
"value": "sine"
},
{
"name": "Triangle",
"value": "triangle"
},
{
"name": "Square",
"value": "square"
},
{
"name": "Sawtooth",
"value": "sawtooth"
},
{
"name": "Constant",
"value": "constant"
},
{
"name": "Bounce",
"value": "bounce"
}
]
},
{
"default": 4,
"label": "3:",
"max": 32,
"min": 0,
"name": "y_scale",
"step": 1,
"type": "float",
"widget": "spinbox"
}
]
},
"type": "shader"
}

View File

@ -1 +1,65 @@
{"name":"perlin","node_position":{"x":0,"y":0},"parameters":{"iterations":3,"persistence":0.5,"scale_x":4,"scale_y":4},"shader_model":{"global":"float perlin(vec2 uv, vec2 size, int iterations, float persistence, int seed) {\n\tvec2 seed2 = rand2(vec2(float(seed), 1.0-float(seed)));\n float rv = 0.0;\n float coef = 1.0;\n float acc = 0.0;\n for (int i = 0; i < iterations; ++i) {\n \tvec2 step = vec2(1.0)/size;\n\t\tvec2 xy = floor(uv*size);\n float f0 = rand(seed2+mod(xy, size));\n float f1 = rand(seed2+mod(xy+vec2(1.0, 0.0), size));\n float f2 = rand(seed2+mod(xy+vec2(0.0, 1.0), size));\n float f3 = rand(seed2+mod(xy+vec2(1.0, 1.0), size));\n vec2 mixval = smoothstep(0.0, 1.0, fract(uv*size));\n rv += coef * mix(mix(f0, f1, mixval.x), mix(f2, f3, mixval.x), mixval.y);\n acc += coef;\n size *= 2.0;\n coef *= persistence;\n }\n \n return rv / acc;\n}\n","instance":"","name":"Perlin","outputs":[{"f":"perlin($(uv), vec2($(scale_x), $(scale_y)), int($(iterations)), $(persistence), $(seed))"}],"parameters":[{"default":4,"label":"Scale X","max":32,"min":1,"name":"scale_x","step":1,"type":"float","widget":"spinbox"},{"default":4,"label":"Scale Y","max":32,"min":1,"name":"scale_y","step":1,"type":"float","widget":"spinbox"},{"default":3,"label":"Iterations","max":10,"min":1,"name":"iterations","step":1,"type":"float","widget":"spinbox"},{"default":0.5,"label":"Persistance","max":1,"min":0,"name":"persistence","step":0.05,"type":"float","widget":"spinbox"}]}}
{
"name": "perlin",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"iterations": 3,
"persistence": 0.5,
"scale_x": 4,
"scale_y": 4
},
"shader_model": {
"global": "float perlin(vec2 uv, vec2 size, int iterations, float persistence, int seed) {\n\tvec2 seed2 = rand2(vec2(float(seed), 1.0-float(seed)));\n float rv = 0.0;\n float coef = 1.0;\n float acc = 0.0;\n for (int i = 0; i < iterations; ++i) {\n \tvec2 step = vec2(1.0)/size;\n\t\tvec2 xy = floor(uv*size);\n float f0 = rand(seed2+mod(xy, size));\n float f1 = rand(seed2+mod(xy+vec2(1.0, 0.0), size));\n float f2 = rand(seed2+mod(xy+vec2(0.0, 1.0), size));\n float f3 = rand(seed2+mod(xy+vec2(1.0, 1.0), size));\n vec2 mixval = smoothstep(0.0, 1.0, fract(uv*size));\n rv += coef * mix(mix(f0, f1, mixval.x), mix(f2, f3, mixval.x), mixval.y);\n acc += coef;\n size *= 2.0;\n coef *= persistence;\n }\n \n return rv / acc;\n}\n",
"instance": "",
"name": "Perlin",
"outputs": [
{
"f": "perlin($(uv), vec2($(scale_x), $(scale_y)), int($(iterations)), $(persistence), $(seed))"
}
],
"parameters": [
{
"default": 4,
"label": "Scale X",
"max": 32,
"min": 1,
"name": "scale_x",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 4,
"label": "Scale Y",
"max": 32,
"min": 1,
"name": "scale_y",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 3,
"label": "Iterations",
"max": 10,
"min": 1,
"name": "iterations",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 0.5,
"label": "Persistance",
"max": 1,
"min": 0,
"name": "persistence",
"step": 0.05,
"type": "float",
"widget": "spinbox"
}
]
}
}

View File

@ -1 +1,48 @@
{"name":"runes","node_position":{"x":0,"y":0},"parameters":{"columns":8,"rows":8},"shader_model":{"global":"float ThickLine(vec2 uv, vec2 posA, vec2 posB, float radiusInv)\n{\n\tvec2 dir = posA - posB;\n\tfloat dirLen = length(dir);\n\tvec2 dirN = normalize(dir);\n\tfloat dotTemp = clamp(dot(uv - posB, dirN), 0.0, dirLen);\n\tvec2 proj = dotTemp * dirN + posB;\n\tfloat d1 = length(uv - proj);\n\tfloat finalGray = clamp(1.0 - d1 * radiusInv, 0.0, 1.0);\n\treturn finalGray;\n}\n\n// makes a rune in the 0..1 uv space. Seed is which rune to draw.\n// passes back gray in x and derivates for lighting in yz\nfloat Rune(vec2 uv) {\n\tfloat finalLine = 0.0;\n\tvec2 seed = floor(uv)-0.41;\n\tuv = fract(uv);\n\tfor (int i = 0; i < 4; i++)\t// number of strokes\n\t{\n\t\tvec2 posA = rand2(floor(seed+0.5));\n\t\tvec2 posB = rand2(floor(seed+1.5));\n\t\tseed += 2.0;\n\t\t// expand the range and mod it to get a nicely distributed random number - hopefully. :)\n\t\tposA = fract(posA * 128.0);\n\t\tposB = fract(posB * 128.0);\n\t\t// each rune touches the edge of its box on all 4 sides\n\t\tif (i == 0) posA.y = 0.0;\n\t\tif (i == 1) posA.x = 0.999;\n\t\tif (i == 2) posA.x = 0.0;\n\t\tif (i == 3) posA.y = 0.999;\n\t\t// snap the random line endpoints to a grid 2x3\n\t\tvec2 snaps = vec2(2.0, 3.0);\n\t\tposA = (floor(posA * snaps) + 0.5) / snaps;\t// + 0.5 to center it in a grid cell\n\t\tposB = (floor(posB * snaps) + 0.5) / snaps;\n\t\t//if (distance(posA, posB) < 0.0001) continue;\t// eliminate dots.\n\t\t// Dots (degenerate lines) are not cross-GPU safe without adding 0.001 - divide by 0 error.\n\t\tfinalLine = max(finalLine, ThickLine(uv, posA, posB + 0.001, 20.0));\n\t}\n\treturn finalLine;\n}\n\n\n","inputs":[],"instance":"","name":"Runes","outputs":[{"f":"Rune(vec2($columns, $rows)*$uv)","type":"f"}],"parameters":[{"default":0,"label":"","max":32,"min":2,"name":"columns","step":1,"type":"float","widget":"spinbox"},{"default":0,"label":"","max":32,"min":2,"name":"rows","step":1,"type":"float","widget":"spinbox"}]},"type":"shader"}
{
"name": "runes",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"columns": 8,
"rows": 8
},
"shader_model": {
"global": "float ThickLine(vec2 uv, vec2 posA, vec2 posB, float radiusInv)\n{\n\tvec2 dir = posA - posB;\n\tfloat dirLen = length(dir);\n\tvec2 dirN = normalize(dir);\n\tfloat dotTemp = clamp(dot(uv - posB, dirN), 0.0, dirLen);\n\tvec2 proj = dotTemp * dirN + posB;\n\tfloat d1 = length(uv - proj);\n\tfloat finalGray = clamp(1.0 - d1 * radiusInv, 0.0, 1.0);\n\treturn finalGray;\n}\n\n// makes a rune in the 0..1 uv space. Seed is which rune to draw.\n// passes back gray in x and derivates for lighting in yz\nfloat Rune(vec2 uv) {\n\tfloat finalLine = 0.0;\n\tvec2 seed = floor(uv)-0.41;\n\tuv = fract(uv);\n\tfor (int i = 0; i < 4; i++)\t// number of strokes\n\t{\n\t\tvec2 posA = rand2(floor(seed+0.5));\n\t\tvec2 posB = rand2(floor(seed+1.5));\n\t\tseed += 2.0;\n\t\t// expand the range and mod it to get a nicely distributed random number - hopefully. :)\n\t\tposA = fract(posA * 128.0);\n\t\tposB = fract(posB * 128.0);\n\t\t// each rune touches the edge of its box on all 4 sides\n\t\tif (i == 0) posA.y = 0.0;\n\t\tif (i == 1) posA.x = 0.999;\n\t\tif (i == 2) posA.x = 0.0;\n\t\tif (i == 3) posA.y = 0.999;\n\t\t// snap the random line endpoints to a grid 2x3\n\t\tvec2 snaps = vec2(2.0, 3.0);\n\t\tposA = (floor(posA * snaps) + 0.5) / snaps;\t// + 0.5 to center it in a grid cell\n\t\tposB = (floor(posB * snaps) + 0.5) / snaps;\n\t\t//if (distance(posA, posB) < 0.0001) continue;\t// eliminate dots.\n\t\t// Dots (degenerate lines) are not cross-GPU safe without adding 0.001 - divide by 0 error.\n\t\tfinalLine = max(finalLine, ThickLine(uv, posA, posB + 0.001, 20.0));\n\t}\n\treturn finalLine;\n}\n\n\n",
"inputs": [
],
"instance": "",
"name": "Runes",
"outputs": [
{
"f": "Rune(vec2($columns, $rows)*$uv)",
"type": "f"
}
],
"parameters": [
{
"default": 0,
"label": "",
"max": 32,
"min": 2,
"name": "columns",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 0,
"label": "",
"max": 32,
"min": 2,
"name": "rows",
"step": 1,
"type": "float",
"widget": "spinbox"
}
]
},
"type": "shader"
}

View File

@ -1 +1,88 @@
{"name":"scratches","node_position":{"x":0,"y":0},"parameters":{"Randomness":0.5,"angle":-1,"layers":5,"length":0.25,"randomness":0.44,"waviness":0.51,"width":0.4},"shader_model":{"code":"","global":"float scratch(vec2 uv, vec2 size, float waviness, float angle, float randomness, vec2 seed) {\n\tfloat subdivide = floor(1.0/size.x);\n\tfloat cut = size.x*subdivide;\n\tuv *= subdivide;\n\tvec2 r1 = rand2(floor(uv)+seed);\n\tvec2 r2 = rand2(r1);\n\tuv = fract(uv);\n\tuv = 2.0*uv-vec2(1.0);\n\tfloat a = 6.28*(angle+(r1.x-0.5)*randomness);\n\tfloat c = cos(a);\n\tfloat s = sin(a);\n\tuv = vec2(c*uv.x+s*uv.y, s*uv.x-c*uv.y);\n\tuv.y += 2.0*r1.y-1.0;\n\tuv.y += 0.5*waviness*cos(2.0*uv.x+6.28*r2.y);\n\tuv.x /= cut;\n\tuv.y /= subdivide*size.y;\n\treturn (1.0-uv.x*uv.x)*max(0.0, 1.0-1000.0*uv.y*uv.y);\n}\n\nfloat scratches(vec2 uv, int layers, vec2 size, float waviness, float angle, float randomness, vec2 seed) {\n\tfloat v = 0.0;\n\tfor (int i = 0; i < layers; ++i) {\n\t\tv = max(v, scratch(fract(uv+seed), size, waviness, angle/360.0, randomness, seed));\n\t\tseed = rand2(seed);\n\t}\n\treturn v;\n}\n","inputs":[],"instance":"","name":"Scratches","outputs":[{"f":"scratches($uv, int($layers), vec2($length, $width), $waviness, $angle, $randomness, vec2($seed, 0.0))","type":"f"}],"parameters":[{"default":0.25,"label":"Length","max":1,"min":0.1,"name":"length","step":0.01,"type":"float"},{"default":0.5,"label":"Width","max":1,"min":0.1,"name":"width","step":0.01,"type":"float"},{"default":4,"label":"Layers","max":10,"min":1,"name":"layers","step":1,"type":"float"},{"default":0.5,"label":"Waviness","max":1,"min":0,"name":"waviness","step":0.01,"type":"float"},{"default":0,"label":"Angle","max":180,"min":-180,"name":"angle","step":1,"type":"float"},{"default":0.5,"label":"Randomness","max":1,"min":0,"name":"randomness","step":0.01,"type":"float"}]},"type":"shader"}
{
"name": "scratches",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"Randomness": 0.5,
"angle": -1,
"layers": 5,
"length": 0.25,
"randomness": 0.44,
"waviness": 0.51,
"width": 0.4
},
"shader_model": {
"code": "",
"global": "float scratch(vec2 uv, vec2 size, float waviness, float angle, float randomness, vec2 seed) {\n\tfloat subdivide = floor(1.0/size.x);\n\tfloat cut = size.x*subdivide;\n\tuv *= subdivide;\n\tvec2 r1 = rand2(floor(uv)+seed);\n\tvec2 r2 = rand2(r1);\n\tuv = fract(uv);\n\tuv = 2.0*uv-vec2(1.0);\n\tfloat a = 6.28*(angle+(r1.x-0.5)*randomness);\n\tfloat c = cos(a);\n\tfloat s = sin(a);\n\tuv = vec2(c*uv.x+s*uv.y, s*uv.x-c*uv.y);\n\tuv.y += 2.0*r1.y-1.0;\n\tuv.y += 0.5*waviness*cos(2.0*uv.x+6.28*r2.y);\n\tuv.x /= cut;\n\tuv.y /= subdivide*size.y;\n\treturn (1.0-uv.x*uv.x)*max(0.0, 1.0-1000.0*uv.y*uv.y);\n}\n\nfloat scratches(vec2 uv, int layers, vec2 size, float waviness, float angle, float randomness, vec2 seed) {\n\tfloat v = 0.0;\n\tfor (int i = 0; i < layers; ++i) {\n\t\tv = max(v, scratch(fract(uv+seed), size, waviness, angle/360.0, randomness, seed));\n\t\tseed = rand2(seed);\n\t}\n\treturn v;\n}\n",
"inputs": [
],
"instance": "",
"name": "Scratches",
"outputs": [
{
"f": "scratches($uv, int($layers), vec2($length, $width), $waviness, $angle, $randomness, vec2($seed, 0.0))",
"type": "f"
}
],
"parameters": [
{
"default": 0.25,
"label": "Length",
"max": 1,
"min": 0.1,
"name": "length",
"step": 0.01,
"type": "float"
},
{
"default": 0.5,
"label": "Width",
"max": 1,
"min": 0.1,
"name": "width",
"step": 0.01,
"type": "float"
},
{
"default": 4,
"label": "Layers",
"max": 10,
"min": 1,
"name": "layers",
"step": 1,
"type": "float"
},
{
"default": 0.5,
"label": "Waviness",
"max": 1,
"min": 0,
"name": "waviness",
"step": 0.01,
"type": "float"
},
{
"default": 0,
"label": "Angle",
"max": 180,
"min": -180,
"name": "angle",
"step": 1,
"type": "float"
},
{
"default": 0.5,
"label": "Randomness",
"max": 1,
"min": 0,
"name": "randomness",
"step": 0.01,
"type": "float"
}
]
},
"type": "shader"
}

View File

@ -1 +1,80 @@
{"name":"shape","node_position":{"x":0,"y":0},"parameters":{"edge":0.2,"radius":1,"shape":0,"sides":3},"shader_model":{"global":"float shape_circle(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = max(edge, 1.0e-8);\n float distance = length(uv);\n return clamp((1.0-distance/size)/edge, 0.0, 1.0);\n}\n\nfloat shape_polygon(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = max(edge, 1.0e-8);\n float angle = atan(uv.x, uv.y)+3.14159265359;\n float slice = 6.28318530718/sides;\n return clamp((size-cos(floor(0.5+angle/slice)*slice-angle)*length(uv))/(edge*size), 0.0, 1.0);\n}\n\nfloat shape_star(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = max(edge, 1.0e-8);\n float angle = atan(uv.x, uv.y);\n float slice = 6.28318530718/sides;\n return clamp((size-cos(floor(1.5+angle/slice-2.0*step(0.5*slice, mod(angle, slice)))*slice-angle)*length(uv))/(edge*size), 0.0, 1.0);\n}\n\nfloat shape_curved_star(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = max(edge, 1.0e-8);\n float angle = 2.0*(atan(uv.x, uv.y)+3.14159265359);\n float slice = 6.28318530718/sides;\n return clamp((size-cos(floor(0.5+0.5*angle/slice)*2.0*slice-angle)*length(uv))/(edge*size), 0.0, 1.0);\n}\n\nfloat shape_rays(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = 0.5*max(edge, 1.0e-8)*size;\n\tfloat slice = 6.28318530718/sides;\n float angle = mod(atan(uv.x, uv.y)+3.14159265359, slice)/slice;\n return clamp(min((size-angle)/edge, angle/edge), 0.0, 1.0);\n}\n\n","instance":"","name":"Shape","outputs":[{"f":"shape_$(shape)($(uv), $(sides), $(radius), $(edge))"}],"parameters":[{"default":0,"label":"","name":"shape","type":"enum","values":[{"name":"Circle","value":"circle"},{"name":"Polygon","value":"polygon"},{"name":"Star","value":"star"},{"name":"Curved star","value":"curved_star"},{"name":"Rays","value":"rays"}]},{"default":3,"label":"","max":32,"min":2,"name":"sides","step":1,"type":"float"},{"default":1,"label":"","max":1,"min":0,"name":"radius","step":0,"type":"float"},{"default":0.2,"label":"","max":1,"min":0,"name":"edge","step":0,"type":"float"}]}}
{
"name": "shape",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"edge": 0.2,
"radius": 1,
"shape": 0,
"sides": 3
},
"shader_model": {
"global": "float shape_circle(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = max(edge, 1.0e-8);\n float distance = length(uv);\n return clamp((1.0-distance/size)/edge, 0.0, 1.0);\n}\n\nfloat shape_polygon(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = max(edge, 1.0e-8);\n float angle = atan(uv.x, uv.y)+3.14159265359;\n float slice = 6.28318530718/sides;\n return clamp((size-cos(floor(0.5+angle/slice)*slice-angle)*length(uv))/(edge*size), 0.0, 1.0);\n}\n\nfloat shape_star(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = max(edge, 1.0e-8);\n float angle = atan(uv.x, uv.y);\n float slice = 6.28318530718/sides;\n return clamp((size-cos(floor(1.5+angle/slice-2.0*step(0.5*slice, mod(angle, slice)))*slice-angle)*length(uv))/(edge*size), 0.0, 1.0);\n}\n\nfloat shape_curved_star(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = max(edge, 1.0e-8);\n float angle = 2.0*(atan(uv.x, uv.y)+3.14159265359);\n float slice = 6.28318530718/sides;\n return clamp((size-cos(floor(0.5+0.5*angle/slice)*2.0*slice-angle)*length(uv))/(edge*size), 0.0, 1.0);\n}\n\nfloat shape_rays(vec2 uv, float sides, float size, float edge) {\n uv = 2.0*uv-1.0;\n\tedge = 0.5*max(edge, 1.0e-8)*size;\n\tfloat slice = 6.28318530718/sides;\n float angle = mod(atan(uv.x, uv.y)+3.14159265359, slice)/slice;\n return clamp(min((size-angle)/edge, angle/edge), 0.0, 1.0);\n}\n\n",
"instance": "",
"name": "Shape",
"outputs": [
{
"f": "shape_$(shape)($(uv), $(sides), $(radius), $(edge))"
}
],
"parameters": [
{
"default": 0,
"label": "",
"name": "shape",
"type": "enum",
"values": [
{
"name": "Circle",
"value": "circle"
},
{
"name": "Polygon",
"value": "polygon"
},
{
"name": "Star",
"value": "star"
},
{
"name": "Curved star",
"value": "curved_star"
},
{
"name": "Rays",
"value": "rays"
}
]
},
{
"default": 3,
"label": "",
"max": 32,
"min": 2,
"name": "sides",
"step": 1,
"type": "float"
},
{
"default": 1,
"label": "",
"max": 1,
"min": 0,
"name": "radius",
"step": 0,
"type": "float"
},
{
"default": 0.2,
"label": "",
"max": 1,
"min": 0,
"name": "edge",
"step": 0,
"type": "float"
}
]
}
}

View File

@ -1 +1,60 @@
{"name":"skew","node_position":{"x":0,"y":0},"parameters":{"amount":-0.175,"amout":0,"direction":0,"offset":0.730769},"shader_model":{"global":"vec2 uvskew_h(vec2 uv, float amount) {\n\treturn vec2(uv.x+amount*(uv.y-0.5), uv.y);\n}\nvec2 uvskew_v(vec2 uv, float amount) {\n\treturn vec2(uv.x, uv.y+amount*(uv.x-0.5));\n}","inputs":[{"default":"vec4($uv, 0, 1)","label":"","name":"i","type":"rgba"}],"instance":"","name":"Skew","outputs":[{"rgba":"$i(uvskew_$direction($uv, $amount))","type":"rgba"}],"parameters":[{"default":0,"label":"","name":"direction","type":"enum","values":[{"name":"Horizontal","value":"h"},{"name":"Vertical","value":"v"}]},{"default":0,"label":"","max":3,"min":-3,"name":"amount","step":0.005,"type":"float","widget":"spinbox"}]}}
{
"name": "skew",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"amount": -0.175,
"amout": 0,
"direction": 0,
"offset": 0.730769
},
"shader_model": {
"global": "vec2 uvskew_h(vec2 uv, float amount) {\n\treturn vec2(uv.x+amount*(uv.y-0.5), uv.y);\n}\nvec2 uvskew_v(vec2 uv, float amount) {\n\treturn vec2(uv.x, uv.y+amount*(uv.x-0.5));\n}",
"inputs": [
{
"default": "vec4($uv, 0, 1)",
"label": "",
"name": "i",
"type": "rgba"
}
],
"instance": "",
"name": "Skew",
"outputs": [
{
"rgba": "$i(uvskew_$direction($uv, $amount))",
"type": "rgba"
}
],
"parameters": [
{
"default": 0,
"label": "",
"name": "direction",
"type": "enum",
"values": [
{
"name": "Horizontal",
"value": "h"
},
{
"name": "Vertical",
"value": "v"
}
]
},
{
"default": 0,
"label": "",
"max": 3,
"min": -3,
"name": "amount",
"step": 0.005,
"type": "float",
"widget": "spinbox"
}
]
}
}

View File

@ -1 +1,124 @@
{"name":"transform","node_position":{"x":0,"y":0},"parameters":{"repeat":false,"rotate":0,"scale_x":1,"scale_y":1,"translate_x":0,"translate_y":0},"shader_model":{"code":"","global":"vec2 transform(vec2 uv, vec2 translate, float rotate, vec2 scale, bool repeat) {\n \tvec2 rv;\n\tuv -= translate;\n\tuv -= vec2(0.5);\n\trv.x = cos(rotate)*uv.x + sin(rotate)*uv.y;\n\trv.y = -sin(rotate)*uv.x + cos(rotate)*uv.y;\n\trv /= scale;\n\trv += vec2(0.5);\n if (repeat) {\n\t\treturn fract(rv);\n\t} else {\n\t\treturn clamp(rv, vec2(0.0), vec2(1.0));\n\t}\t\n}","inputs":[{"default":"vec4($uv, 0.0, 1.0)","label":"","name":"i","type":"rgba"},{"default":"1.0","label":"","name":"tx","type":"f"},{"default":"1.0","label":"","name":"ty","type":"f"},{"default":"1.0","label":"","name":"r","type":"f"},{"default":"1.0","label":"","name":"sx","type":"f"},{"default":"1.0","label":"","name":"sy","type":"f"}],"instance":"","name":"Transform","outputs":[{"rgba":"$i(transform($uv, vec2($translate_x*(2.0*$tx($uv)-1.0), $translate_y*(2.0*$ty($uv)-1.0)), $rotate*0.01745329251*(2.0*$r($uv)-1.0), vec2($scale_x*(2.0*$sx($uv)-1.0), $scale_y*(2.0*$sy($uv)-1.0)), $repeat))","type":"rgba"}],"parameters":[{"default":0,"label":"2:Translate X:","max":1,"min":-1,"name":"translate_x","step":0.005,"type":"float","widget":"spinbox"},{"default":0,"label":"Translate Y:","max":1,"min":-1,"name":"translate_y","step":0.005,"type":"float","widget":"spinbox"},{"default":0,"label":"Rotate:","max":720,"min":-720,"name":"rotate","step":0.005,"type":"float","widget":"spinbox"},{"default":1,"label":"Scale X:","max":50,"min":0,"name":"scale_x","step":0.005,"type":"float","widget":"spinbox"},{"default":1,"label":"Scale Y:","max":50,"min":0,"name":"scale_y","step":0.005,"type":"float","widget":"spinbox"},{"default":false,"label":"Repeat:","name":"repeat","type":"boolean"}]},"type":"shader"}
{
"name": "transform",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"repeat": false,
"rotate": 0,
"scale_x": 1,
"scale_y": 1,
"translate_x": 0,
"translate_y": 0
},
"shader_model": {
"code": "",
"global": "vec2 transform(vec2 uv, vec2 translate, float rotate, vec2 scale, bool repeat) {\n \tvec2 rv;\n\tuv -= translate;\n\tuv -= vec2(0.5);\n\trv.x = cos(rotate)*uv.x + sin(rotate)*uv.y;\n\trv.y = -sin(rotate)*uv.x + cos(rotate)*uv.y;\n\trv /= scale;\n\trv += vec2(0.5);\n if (repeat) {\n\t\treturn fract(rv);\n\t} else {\n\t\treturn clamp(rv, vec2(0.0), vec2(1.0));\n\t}\t\n}",
"inputs": [
{
"default": "vec4($uv, 0.0, 1.0)",
"label": "",
"name": "i",
"type": "rgba"
},
{
"default": "1.0",
"label": "",
"name": "tx",
"type": "f"
},
{
"default": "1.0",
"label": "",
"name": "ty",
"type": "f"
},
{
"default": "1.0",
"label": "",
"name": "r",
"type": "f"
},
{
"default": "1.0",
"label": "",
"name": "sx",
"type": "f"
},
{
"default": "1.0",
"label": "",
"name": "sy",
"type": "f"
}
],
"instance": "",
"name": "Transform",
"outputs": [
{
"rgba": "$i(transform($uv, vec2($translate_x*(2.0*$tx($uv)-1.0), $translate_y*(2.0*$ty($uv)-1.0)), $rotate*0.01745329251*(2.0*$r($uv)-1.0), vec2($scale_x*(2.0*$sx($uv)-1.0), $scale_y*(2.0*$sy($uv)-1.0)), $repeat))",
"type": "rgba"
}
],
"parameters": [
{
"default": 0,
"label": "2:Translate X:",
"max": 1,
"min": -1,
"name": "translate_x",
"step": 0.005,
"type": "float",
"widget": "spinbox"
},
{
"default": 0,
"label": "Translate Y:",
"max": 1,
"min": -1,
"name": "translate_y",
"step": 0.005,
"type": "float",
"widget": "spinbox"
},
{
"default": 0,
"label": "Rotate:",
"max": 720,
"min": -720,
"name": "rotate",
"step": 0.005,
"type": "float",
"widget": "spinbox"
},
{
"default": 1,
"label": "Scale X:",
"max": 50,
"min": 0,
"name": "scale_x",
"step": 0.005,
"type": "float",
"widget": "spinbox"
},
{
"default": 1,
"label": "Scale Y:",
"max": 50,
"min": 0,
"name": "scale_y",
"step": 0.005,
"type": "float",
"widget": "spinbox"
},
{
"default": false,
"label": "Repeat:",
"name": "repeat",
"type": "boolean"
}
]
},
"type": "shader"
}

View File

@ -1 +1,57 @@
{"name":"truchet","node_position":{"x":0,"y":0},"parameters":{"Size":4,"shape":1,"size":4,"type":1},"shader_model":{"code":"","global":"float truchet1(vec2 uv, vec2 seed) {\n vec2 i = floor(uv);\n vec2 f = fract(uv)-vec2(0.5);\n return 1.0-abs(abs((2.0*step(rand(i+seed), 0.5)-1.0)*f.x+f.y)-0.5);\n}\n\nfloat truchet2(vec2 uv, vec2 seed) {\n vec2 i = floor(uv);\n vec2 f = fract(uv);\n float random = step(rand(i+seed), 0.5);\n f.x *= 2.0*random-1.0;\n f.x += 1.0-random;\n return 1.0-min(abs(length(f)-0.5), abs(length(1.0-f)-0.5));\n}\n","inputs":[],"instance":"","name":"Truchet","outputs":[{"f":"truchet$shape($uv*$size, vec2($seed, $seed))","type":"f"}],"parameters":[{"default":0,"label":"Shape","name":"shape","type":"enum","values":[{"name":"Line","value":"1"},{"name":"Circle","value":"2"}]},{"default":4,"label":"Size","max":64,"min":2,"name":"size","step":1,"type":"float","widget":"spinbox"}]},"type":"shader"}
{
"name": "truchet",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"Size": 4,
"shape": 1,
"size": 4,
"type": 1
},
"shader_model": {
"code": "",
"global": "float truchet1(vec2 uv, vec2 seed) {\n vec2 i = floor(uv);\n vec2 f = fract(uv)-vec2(0.5);\n return 1.0-abs(abs((2.0*step(rand(i+seed), 0.5)-1.0)*f.x+f.y)-0.5);\n}\n\nfloat truchet2(vec2 uv, vec2 seed) {\n vec2 i = floor(uv);\n vec2 f = fract(uv);\n float random = step(rand(i+seed), 0.5);\n f.x *= 2.0*random-1.0;\n f.x += 1.0-random;\n return 1.0-min(abs(length(f)-0.5), abs(length(1.0-f)-0.5));\n}\n",
"inputs": [
],
"instance": "",
"name": "Truchet",
"outputs": [
{
"f": "truchet$shape($uv*$size, vec2($seed, $seed))",
"type": "f"
}
],
"parameters": [
{
"default": 0,
"label": "Shape",
"name": "shape",
"type": "enum",
"values": [
{
"name": "Line",
"value": "1"
},
{
"name": "Circle",
"value": "2"
}
]
},
{
"default": 4,
"label": "Size",
"max": 64,
"min": 2,
"name": "size",
"step": 1,
"type": "float",
"widget": "spinbox"
}
]
},
"type": "shader"
}

View File

@ -1 +1,39 @@
{"name":"uniform","node_position":{"x":0,"y":0},"parameters":{"color":{"a":1,"b":1,"g":1,"r":1,"type":"Color"}},"shader_model":{"global":"","instance":"","name":"Uniform","outputs":[{"rgba":"$(color)"}],"parameters":[{"default":{"a":1,"b":1,"g":1,"r":1},"label":"","name":"color","type":"color"}]}}
{
"name": "uniform",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"color": {
"a": 1,
"b": 1,
"g": 1,
"r": 1,
"type": "Color"
}
},
"shader_model": {
"global": "",
"instance": "",
"name": "Uniform",
"outputs": [
{
"rgba": "$(color)"
}
],
"parameters": [
{
"default": {
"a": 1,
"b": 1,
"g": 1,
"r": 1
},
"label": "",
"name": "color",
"type": "color"
}
]
}
}

View File

@ -1 +1,75 @@
{"name":"voronoi","node_position":{"x":0,"y":0},"parameters":{"intensity":0.4,"randomness":1,"scale_x":16,"scale_y":16},"shader_model":{"code":"","global":"vec4 voronoi(vec2 uv, vec2 size, float intensity, float randomness, int seed) {\n\tvec2 seed2 = rand2(vec2(float(seed), 1.0-float(seed)));\n uv *= size;\n float best_distance0 = 1.0;\n float best_distance1 = 1.0;\n vec2 point0;\n vec2 point1;\n vec2 p0 = floor(uv);\n for (int dx = -1; dx < 2; ++dx) {\n \tfor (int dy = -1; dy < 2; ++dy) {\n vec2 d = vec2(float(dx), float(dy));\n vec2 p = p0+d;\n p += randomness*rand2(seed2+mod(p, size));\n float distance = length((uv - p) / size);\n if (best_distance0 > distance) {\n \tbest_distance1 = best_distance0;\n \tbest_distance0 = distance;\n point1 = point0;\n point0 = p;\n } else if (best_distance1 > distance) {\n \tbest_distance1 = distance;\n point1 = p;\n }\n }\n }\n float edge_distance = dot(uv - 0.5*(point0+point1), normalize(point0-point1));\n \n return vec4(point0, best_distance0*length(size)*intensity, edge_distance);\n}\n","inputs":[],"instance":"","name":"Voronoi","outputs":[{"f":"voronoi($uv, vec2($scale_x, $scale_y), $intensity, $randomness, $seed).z","type":"f"},{"f":"voronoi($uv, vec2($scale_x, $scale_y), $intensity, $randomness, $seed).w","type":"f"},{"rgb":"rand3(fract(voronoi($uv, vec2($scale_x, $scale_y), $intensity, $randomness, $seed).xy))","type":"rgb"}],"parameters":[{"default":4,"label":"Scale X","max":32,"min":1,"name":"scale_x","step":1,"type":"float"},{"default":4,"label":"Scale Y","max":32,"min":1,"name":"scale_y","step":1,"type":"float"},{"default":0.5,"label":"Intensity","max":1,"min":0,"name":"intensity","step":0.05,"type":"float"},{"default":1,"label":"Randomness","max":1,"min":0,"name":"randomness","step":0.01,"type":"float"}]},"type":"shader"}
{
"name": "voronoi",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"intensity": 0.4,
"randomness": 1,
"scale_x": 16,
"scale_y": 16
},
"shader_model": {
"code": "",
"global": "vec4 voronoi(vec2 uv, vec2 size, float intensity, float randomness, int seed) {\n\tvec2 seed2 = rand2(vec2(float(seed), 1.0-float(seed)));\n uv *= size;\n float best_distance0 = 1.0;\n float best_distance1 = 1.0;\n vec2 point0;\n vec2 point1;\n vec2 p0 = floor(uv);\n for (int dx = -1; dx < 2; ++dx) {\n \tfor (int dy = -1; dy < 2; ++dy) {\n vec2 d = vec2(float(dx), float(dy));\n vec2 p = p0+d;\n p += randomness*rand2(seed2+mod(p, size));\n float distance = length((uv - p) / size);\n if (best_distance0 > distance) {\n \tbest_distance1 = best_distance0;\n \tbest_distance0 = distance;\n point1 = point0;\n point0 = p;\n } else if (best_distance1 > distance) {\n \tbest_distance1 = distance;\n point1 = p;\n }\n }\n }\n float edge_distance = dot(uv - 0.5*(point0+point1), normalize(point0-point1));\n \n return vec4(point0, best_distance0*length(size)*intensity, edge_distance);\n}\n",
"inputs": [
],
"instance": "",
"name": "Voronoi",
"outputs": [
{
"f": "voronoi($uv, vec2($scale_x, $scale_y), $intensity, $randomness, $seed).z",
"type": "f"
},
{
"f": "voronoi($uv, vec2($scale_x, $scale_y), $intensity, $randomness, $seed).w",
"type": "f"
},
{
"rgb": "rand3(fract(voronoi($uv, vec2($scale_x, $scale_y), $intensity, $randomness, $seed).xy))",
"type": "rgb"
}
],
"parameters": [
{
"default": 4,
"label": "Scale X",
"max": 32,
"min": 1,
"name": "scale_x",
"step": 1,
"type": "float"
},
{
"default": 4,
"label": "Scale Y",
"max": 32,
"min": 1,
"name": "scale_y",
"step": 1,
"type": "float"
},
{
"default": 0.5,
"label": "Intensity",
"max": 1,
"min": 0,
"name": "intensity",
"step": 0.05,
"type": "float"
},
{
"default": 1,
"label": "Randomness",
"max": 1,
"min": 0,
"name": "randomness",
"step": 0.01,
"type": "float"
}
]
},
"type": "shader"
}

View File

@ -1 +1,59 @@
{"name":"warp","node_position":{"x":0,"y":0},"parameters":{"amount":0.2,"eps":0.045,"epsilon":0},"shader_model":{"global":"","inputs":[{"default":"vec4(sin($uv.x*20.0)*0.5+0.5, sin($uv.y*20.0)*0.5+0.5, 0, 1)","label":"","name":"in","type":"rgba"},{"default":"0.0","label":"","name":"d","type":"f"}],"instance":"","name":"Warp","outputs":[{"rgba":"$in($uv+$amount*vec2($d(fract($uv+vec2($eps, 0.0)))-$d(fract($uv-vec2($eps, 0.0))), $d(fract($uv+vec2(0.0, $eps)))-$d(fract($uv-vec2(0.0, $eps)))))","type":"rgba"}],"parameters":[{"default":0,"label":"","max":1,"min":0,"name":"amount","step":0.005,"type":"float","widget":"spinbox"},{"default":0,"label":"","max":0.2,"min":0.005,"name":"eps","step":0.005,"type":"float","widget":"spinbox"}]}}
{
"name": "warp",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"amount": 0.2,
"eps": 0.045,
"epsilon": 0
},
"shader_model": {
"global": "",
"inputs": [
{
"default": "vec4(sin($uv.x*20.0)*0.5+0.5, sin($uv.y*20.0)*0.5+0.5, 0, 1)",
"label": "",
"name": "in",
"type": "rgba"
},
{
"default": "0.0",
"label": "",
"name": "d",
"type": "f"
}
],
"instance": "",
"name": "Warp",
"outputs": [
{
"rgba": "$in($uv+$amount*vec2($d(fract($uv+vec2($eps, 0.0)))-$d(fract($uv-vec2($eps, 0.0))), $d(fract($uv+vec2(0.0, $eps)))-$d(fract($uv-vec2(0.0, $eps)))))",
"type": "rgba"
}
],
"parameters": [
{
"default": 0,
"label": "",
"max": 1,
"min": 0,
"name": "amount",
"step": 0.005,
"type": "float",
"widget": "spinbox"
},
{
"default": 0,
"label": "",
"max": 0.2,
"min": 0.005,
"name": "eps",
"step": 0.005,
"type": "float",
"widget": "spinbox"
}
]
}
}

View File

@ -1 +1,58 @@
{"name":"weave","node_position":{"x":0,"y":0},"parameters":{"columns":8,"rows":8,"width":0.85},"shader_model":{"global":"float weave(vec2 uv, vec2 count, float width) {\n uv *= count;\n\tfloat c = (sin(3.1415926*(uv.x+floor(uv.y)))*0.5+0.5)*step(abs(fract(uv.y)-0.5), width*0.5);\n\tc = max(c, (sin(3.1415926*(1.0+uv.y+floor(uv.x)))*0.5+0.5)*step(abs(fract(uv.x)-0.5), width*0.5));\n\treturn c;\n}","inputs":[],"instance":"","name":"Weave","outputs":[{"f":"weave($uv, vec2($columns, $rows), $width)","type":"f"}],"parameters":[{"default":4,"label":"","max":32,"min":2,"name":"columns","step":1,"type":"float","widget":"spinbox"},{"default":4,"label":"","max":32,"min":2,"name":"rows","step":1,"type":"float","widget":"spinbox"},{"default":0.8,"label":"","max":1,"min":0,"name":"width","step":0.05,"type":"float"}]},"type":"shader"}
{
"name": "weave",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"columns": 8,
"rows": 8,
"width": 0.85
},
"shader_model": {
"global": "float weave(vec2 uv, vec2 count, float width) {\n uv *= count;\n\tfloat c = (sin(3.1415926*(uv.x+floor(uv.y)))*0.5+0.5)*step(abs(fract(uv.y)-0.5), width*0.5);\n\tc = max(c, (sin(3.1415926*(1.0+uv.y+floor(uv.x)))*0.5+0.5)*step(abs(fract(uv.x)-0.5), width*0.5));\n\treturn c;\n}",
"inputs": [
],
"instance": "",
"name": "Weave",
"outputs": [
{
"f": "weave($uv, vec2($columns, $rows), $width)",
"type": "f"
}
],
"parameters": [
{
"default": 4,
"label": "",
"max": 32,
"min": 2,
"name": "columns",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 4,
"label": "",
"max": 32,
"min": 2,
"name": "rows",
"step": 1,
"type": "float",
"widget": "spinbox"
},
{
"default": 0.8,
"label": "",
"max": 1,
"min": 0,
"name": "width",
"step": 0.05,
"type": "float"
}
]
},
"type": "shader"
}