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

2383 lines
43 KiB
Plaintext

{
"connections": [
{
"from": "bricks",
"from_port": 0,
"to": "warp",
"to_port": 0
},
{
"from": "perlin",
"from_port": 0,
"to": "warp",
"to_port": 1
},
{
"from": "graph_2",
"from_port": 0,
"to": "blend_2",
"to_port": 0
},
{
"from": "blend",
"from_port": 0,
"to": "blend_2",
"to_port": 1
},
{
"from": "bricks",
"from_port": 0,
"to": "blend",
"to_port": 0
},
{
"from": "warp",
"from_port": 0,
"to": "blend",
"to_port": 1
},
{
"from": "graph_3",
"from_port": 0,
"to": "blend",
"to_port": 2
},
{
"from": "graph",
"from_port": 0,
"to": "Material",
"to_port": 0
},
{
"from": "raymarching_2",
"from_port": 0,
"to": "graph",
"to_port": 0
},
{
"from": "raymarching_2",
"from_port": 1,
"to": "graph",
"to_port": 1
},
{
"from": "raymarching_2_2",
"from_port": 0,
"to": "graph",
"to_port": 2
},
{
"from": "raymarching_2_2",
"from_port": 1,
"to": "graph",
"to_port": 3
},
{
"from": "graph_3_2",
"from_port": 0,
"to": "raymarching_2",
"to_port": 0
},
{
"from": "graph_4",
"from_port": 0,
"to": "sdf3d_rotate_2",
"to_port": 0
},
{
"from": "sdf3d_rotate_2",
"from_port": 0,
"to": "sdf3d_translate_3_2",
"to_port": 0
},
{
"from": "sdf3d_translate_3_2",
"from_port": 0,
"to": "raymarching_2_2",
"to_port": 0
}
],
"label": "Graph",
"name": "49",
"node_position": {
"x": 0,
"y": 0
},
"nodes": [
{
"name": "Material",
"node_position": {
"x": 576.544006,
"y": 29.080002
},
"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,
"roughness": 1,
"size": 8,
"subsurf_scatter_strength": 0
},
"type": "material"
},
{
"connections": [
{
"from": "transform",
"from_port": 0,
"to": "blend_3",
"to_port": 0
},
{
"from": "transform_2",
"from_port": 0,
"to": "blend_3",
"to_port": 1
},
{
"from": "blend_3",
"from_port": 0,
"to": "blend",
"to_port": 0
},
{
"from": "transform_3",
"from_port": 0,
"to": "blend_2",
"to_port": 0
},
{
"from": "transform_4",
"from_port": 0,
"to": "blend_2",
"to_port": 1
},
{
"from": "blend_2",
"from_port": 0,
"to": "blend",
"to_port": 1
},
{
"from": "shape_5",
"from_port": 0,
"to": "blend_4",
"to_port": 1
},
{
"from": "gen_inputs",
"from_port": 3,
"to": "blend_4",
"to_port": 0
},
{
"from": "blend_4",
"from_port": 0,
"to": "transform_4",
"to_port": 0
},
{
"from": "shape_5",
"from_port": 0,
"to": "blend_4_2",
"to_port": 1
},
{
"from": "gen_inputs",
"from_port": 2,
"to": "blend_4_2",
"to_port": 0
},
{
"from": "shape_5",
"from_port": 0,
"to": "blend_4_3",
"to_port": 1
},
{
"from": "gen_inputs",
"from_port": 1,
"to": "blend_4_3",
"to_port": 0
},
{
"from": "gen_inputs",
"from_port": 0,
"to": "blend_4_4",
"to_port": 0
},
{
"from": "shape_5",
"from_port": 0,
"to": "blend_4_4",
"to_port": 1
},
{
"from": "blend_4_4",
"from_port": 0,
"to": "transform",
"to_port": 0
},
{
"from": "blend_4_3",
"from_port": 0,
"to": "transform_2",
"to_port": 0
},
{
"from": "blend_4_2",
"from_port": 0,
"to": "transform_3",
"to_port": 0
},
{
"from": "blend",
"from_port": 0,
"to": "gen_outputs",
"to_port": 0
}
],
"label": "Tile Inputs",
"name": "graph",
"node_position": {
"x": 237.541992,
"y": 78.266541
},
"nodes": [
{
"name": "transform_4",
"node_position": {
"x": -144.5,
"y": 193
},
"parameters": {
"repeat": false,
"rotate": 0,
"scale_x": 0.5,
"scale_y": 0.5,
"translate_x": 0.25,
"translate_y": 0.25
},
"type": "transform"
},
{
"name": "transform_3",
"node_position": {
"x": -141.5,
"y": -2
},
"parameters": {
"repeat": false,
"rotate": 0,
"scale_x": 0.5,
"scale_y": 0.5,
"translate_x": -0.25,
"translate_y": 0.25
},
"type": "transform"
},
{
"name": "transform",
"node_position": {
"x": -136.5,
"y": -418
},
"parameters": {
"repeat": false,
"rotate": 0,
"scale_x": 0.5,
"scale_y": 0.5,
"translate_x": -0.25,
"translate_y": -0.25
},
"type": "transform"
},
{
"name": "transform_2",
"node_position": {
"x": -135.5,
"y": -224
},
"parameters": {
"repeat": false,
"rotate": 0,
"scale_x": 0.5,
"scale_y": 0.5,
"translate_x": 0.25,
"translate_y": -0.25
},
"type": "transform"
},
{
"name": "blend_2",
"node_position": {
"x": 113.5,
"y": -10
},
"parameters": {
"amount": 1,
"blend_type": 9
},
"type": "blend"
},
{
"name": "blend_3",
"node_position": {
"x": 114.5,
"y": -95
},
"parameters": {
"amount": 1,
"blend_type": 9
},
"type": "blend"
},
{
"name": "shape_5",
"node_position": {
"x": -392.29126,
"y": 349
},
"parameters": {
"edge": 0,
"radius": 0.99,
"shape": 1,
"sides": 4
},
"type": "shape"
},
{
"name": "blend_4",
"node_position": {
"x": -405.29126,
"y": 184.25
},
"parameters": {
"amount": 1,
"blend_type": 10
},
"type": "blend"
},
{
"name": "blend_4_2",
"node_position": {
"x": -404.79126,
"y": 12.25
},
"parameters": {
"amount": 1,
"blend_type": 10
},
"type": "blend"
},
{
"name": "blend_4_3",
"node_position": {
"x": -399.79126,
"y": -141.75
},
"parameters": {
"amount": 1,
"blend_type": 10
},
"type": "blend"
},
{
"name": "blend_4_4",
"node_position": {
"x": -393.79126,
"y": -293
},
"parameters": {
"amount": 1,
"blend_type": 10
},
"type": "blend"
},
{
"name": "blend",
"node_position": {
"x": 358.220001,
"y": -53.728001
},
"parameters": {
"amount": 1,
"blend_type": 9
},
"type": "blend"
},
{
"name": "gen_inputs",
"node_position": {
"x": -705.29126,
"y": -41.581501
},
"parameters": {
},
"ports": [
{
"name": "port3",
"type": "rgba"
},
{
"name": "port2",
"type": "rgba"
},
{
"name": "port1",
"type": "rgba"
},
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
},
{
"name": "gen_outputs",
"node_position": {
"x": 658.219971,
"y": -41.581501
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
},
{
"name": "gen_parameters",
"node_position": {
"x": -363.978027,
"y": -718
},
"parameters": {
},
"type": "remote",
"widgets": [
]
}
],
"parameters": {
},
"type": "graph"
},
{
"connections": [
{
"from": "sdbox_3",
"from_port": 0,
"to": "sdboolean_3",
"to_port": 1
},
{
"from": "sdboolean_3",
"from_port": 0,
"to": "sdshow_2",
"to_port": 0
},
{
"from": "sdboolean_3_2",
"from_port": 0,
"to": "sdboolean_3",
"to_port": 0
},
{
"from": "sdrhombus_2",
"from_port": 0,
"to": "sdboolean_3_2",
"to_port": 1
},
{
"from": "sdbox_3_2",
"from_port": 0,
"to": "sdboolean_3_2",
"to_port": 0
},
{
"from": "sdshow_2",
"from_port": 0,
"to": "colorize",
"to_port": 0
},
{
"from": "colorize",
"from_port": 0,
"to": "gen_outputs",
"to_port": 0
}
],
"label": "Arrow",
"name": "graph_2",
"node_position": {
"x": 206.827515,
"y": 279.753479
},
"nodes": [
{
"name": "sdbox_3",
"node_position": {
"x": 368.648682,
"y": 387.121552
},
"parameters": {
"cx": -0.09,
"cy": 0,
"h": 0.04,
"r": 0.3,
"w": 0.07
},
"type": "sdbox"
},
{
"name": "sdrhombus_2",
"node_position": {
"x": 235.398682,
"y": 251.121552
},
"parameters": {
"cx": -0.1,
"cy": 0,
"h": 0.12,
"r": 0.3,
"w": 0.15
},
"type": "sdrhombus"
},
{
"name": "sdbox_3_2",
"node_position": {
"x": 238.086548,
"y": 121.972382
},
"parameters": {
"cx": -0.41,
"cy": 0,
"h": 0.35,
"r": 0.3,
"w": 0.21
},
"type": "sdbox"
},
{
"name": "sdboolean_3_2",
"node_position": {
"x": 454.586548,
"y": 205.972443
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"op": 1,
"r": 0.3,
"w": 0.28
},
"type": "sdboolean"
},
{
"name": "sdboolean_3",
"node_position": {
"x": 614.648682,
"y": 282.510315
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"op": 0,
"r": 0.3,
"w": 0.28
},
"type": "sdboolean"
},
{
"name": "sdshow_2",
"node_position": {
"x": 602.836609,
"y": 376.603577
},
"parameters": {
"bevel": 0.01,
"cx": 0,
"cy": 0,
"h": 0.08,
"r": 0.3,
"w": 0.28
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in",
"type": "f"
}
],
"instance": "",
"name": "sdShow",
"outputs": [
{
"f": "clamp(-$in($uv)/max($bevel, 0.00001), 0.0, 1.0)",
"type": "f"
}
],
"parameters": [
{
"default": 0,
"label": "Bevel",
"max": 1,
"min": 0,
"name": "bevel",
"step": 0.01,
"type": "float"
}
]
},
"type": "shader"
},
{
"name": "colorize",
"node_position": {
"x": 858.58667,
"y": 374.972534
},
"parameters": {
"gradient": {
"interpolation": 1,
"points": [
{
"a": 0,
"b": 0,
"g": 0,
"pos": 0,
"r": 1
},
{
"a": 1,
"b": 0,
"g": 0,
"pos": 1,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "colorize"
},
{
"name": "gen_inputs",
"node_position": {
"x": -64.601318,
"y": 285.753479
},
"parameters": {
},
"ports": [
],
"type": "ios"
},
{
"name": "gen_outputs",
"node_position": {
"x": 1158.58667,
"y": 285.753479
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
},
{
"name": "gen_parameters",
"node_position": {
"x": 281.827484,
"y": -178.027618
},
"parameters": {
},
"type": "remote",
"widgets": [
]
}
],
"parameters": {
},
"type": "graph"
},
{
"connections": [
{
"from": "pattern",
"from_port": 0,
"to": "transform",
"to_port": 0
},
{
"from": "transform",
"from_port": 0,
"to": "colorize",
"to_port": 0
},
{
"from": "colorize",
"from_port": 0,
"to": "gen_outputs",
"to_port": 0
}
],
"label": "Gradient",
"name": "graph_3",
"node_position": {
"x": -228.787903,
"y": 631.143799
},
"nodes": [
{
"name": "pattern",
"node_position": {
"x": -389.625,
"y": -359.458374
},
"parameters": {
"mix": 0,
"x_scale": 1,
"x_wave": 3,
"y_scale": 1,
"y_wave": 4
},
"type": "pattern"
},
{
"name": "transform",
"node_position": {
"x": -371.125,
"y": -262.458374
},
"parameters": {
"repeat": false,
"rotate": 180,
"scale_x": 1,
"scale_y": 1,
"translate_x": 0,
"translate_y": 0
},
"type": "transform"
},
{
"name": "colorize",
"node_position": {
"x": -352.125,
"y": -69.458374
},
"parameters": {
"gradient": {
"interpolation": 0,
"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": "gen_parameters",
"node_position": {
"x": -406.125,
"y": -498.858337
},
"parameters": {
"param0": 1,
"param1": 180,
"param2": {
"interpolation": 0,
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 1,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "remote",
"widgets": [
{
"label": "Repeat",
"linked_widgets": [
{
"node": "pattern",
"widget": "x_scale"
}
],
"name": "param0",
"type": "linked_control"
},
{
"label": "Rotate",
"linked_widgets": [
{
"node": "transform",
"widget": "rotate"
}
],
"name": "param1",
"type": "linked_control"
},
{
"label": "Gradient",
"linked_widgets": [
{
"node": "colorize",
"widget": "gradient"
}
],
"name": "param2",
"type": "linked_control"
}
]
},
{
"name": "gen_inputs",
"node_position": {
"x": -706.125,
"y": -297.55835
},
"parameters": {
},
"ports": [
],
"type": "ios"
},
{
"name": "gen_outputs",
"node_position": {
"x": -52.125,
"y": -297.55835
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "rgba"
}
],
"type": "ios"
}
],
"parameters": {
"param0": 1,
"param1": 180,
"param2": {
"interpolation": 0,
"points": [
{
"a": 1,
"b": 0,
"g": 0,
"pos": 0,
"r": 0
},
{
"a": 1,
"b": 1,
"g": 1,
"pos": 1,
"r": 1
}
],
"type": "Gradient"
}
},
"type": "graph"
},
{
"name": "bricks",
"node_position": {
"x": -209.473175,
"y": 327.099731
},
"parameters": {
"bevel": 0.1,
"columns": 3,
"mortar": 0.1,
"pattern": 0,
"repeat": 1,
"row_offset": 0.5,
"rows": 6
},
"type": "bricks"
},
{
"name": "warp",
"node_position": {
"x": -185.473175,
"y": 528.099731
},
"parameters": {
"amount": 0.1,
"eps": 0.1,
"epsilon": 0
},
"type": "warp"
},
{
"name": "perlin",
"node_position": {
"x": -436.473175,
"y": 324.099731
},
"parameters": {
"iterations": 3,
"persistence": 0.5,
"scale_x": 4,
"scale_y": 4
},
"type": "perlin"
},
{
"name": "blend",
"node_position": {
"x": 138.235168,
"y": 415.099731
},
"parameters": {
"amount": 1,
"blend_type": 0
},
"type": "blend"
},
{
"name": "blend_2",
"node_position": {
"x": 142.235168,
"y": 326.099731
},
"parameters": {
"amount": 1,
"blend_type": 0
},
"type": "blend"
},
{
"name": "raymarching",
"node_position": {
"x": 242.468536,
"y": 27.145508
},
"parameters": {
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "0.0",
"function": true,
"label": "",
"name": "sdf",
"type": "sdf3d"
}
],
"instance": "float input_$name(vec3 p) {\n\tif (p.z > 0.0) {\n\t\treturn $sdf(p);\n\t} else {\n\t\treturn p.z;\n\t}\n}\n\nfloat raymarch_$name(vec3 ro, vec3 rd) {\n\tfloat dO=0.; \n for (int i=0; i < 25; i++) {\n \tvec3 p = ro + rd*dO;\n float dS = input_$name(p);\n dO += dS;\n if (dO > 1.0 || dS < 0.0001) break;\n }\n \n return dO;\n}\n\nvec3 normal_$name(vec3 p) {\n\tfloat d = input_$name(p);\n float e = .001;\n \n vec3 n = d - vec3(input_$name(p-vec3(e, 0.0, 0.0)), input_$name(p-vec3(0.0, e, 0.0)), input_$name(p-vec3(0.0, 0.0, e)));\n return vec3(-1.0, -1.0, -1.0)*normalize(n);\n}\n\nvec3 render_$name(vec2 uv) {\n\tvec3 p = vec3(uv, 2.0-raymarch(vec3(uv, 2.0), vec3(0.0, 0.0, -1.0)));\n\tvec3 n = normal(p);\n\tvec3 l = vec3(5.0, 5.0, 10.0);\n\tvec3 ld = normalize(l-p);\n\tfloat o = step(p.z, 0.001);\n\tfloat shadow = 1.0-0.75*step(raymarch(l, -ld), length(l-p)-0.01);\n\tfloat light = 0.3+0.7*dot(n, ld)*shadow;\n\treturnvec3(0.8+0.2*o, 0.8+0.2*o, 1.0)*light;\n}\n",
"name": "Render3d",
"outputs": [
{
"rgb": "render_$name($uv-vec2(0.5));\n",
"type": "rgb"
}
],
"parameters": [
]
},
"type": "shader"
},
{
"name": "raymarching_2",
"node_position": {
"x": 24.010315,
"y": 37.457581
},
"parameters": {
},
"type": "raymarching"
},
{
"name": "raymarching_2_2",
"node_position": {
"x": 26.265625,
"y": 127.457581
},
"parameters": {
},
"type": "raymarching"
},
{
"connections": [
{
"from": "sdf3d_sphere_2",
"from_port": 0,
"to": "sdf3d_translate_4",
"to_port": 0
},
{
"from": "sdf3d_translate_4_2",
"from_port": 0,
"to": "sdf3d_smoothboolean_3",
"to_port": 1
},
{
"from": "sdf3d_smoothboolean_3",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2",
"to_port": 1
},
{
"from": "sdf3d_translate_4_2_2",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2",
"to_port": 0
},
{
"from": "sdf3d_sphere_2_2",
"from_port": 0,
"to": "sdf3d_translate_4_3",
"to_port": 0
},
{
"from": "sdf3d_translate_4_3",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2_2",
"to_port": 0
},
{
"from": "sdf3d_smoothboolean_3_2",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2_2",
"to_port": 1
},
{
"from": "sdf3d_sphere_2_2_2",
"from_port": 0,
"to": "sdf3d_translate_4_3_2",
"to_port": 0
},
{
"from": "sdf3d_smoothboolean_3_2_2",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2_3",
"to_port": 1
},
{
"from": "sdf3d_translate_4_3_2",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2_3",
"to_port": 0
},
{
"from": "sdf3d_smoothboolean_3_2_3",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2_3_2",
"to_port": 1
},
{
"from": "sdf3d_box_2",
"from_port": 0,
"to": "sdf3d_rotate_2",
"to_port": 0
},
{
"from": "sdf3d_rotate_2",
"from_port": 0,
"to": "sdf3d_translate_4_3_2_2",
"to_port": 0
},
{
"from": "sdf3d_translate_4_3_2_2",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2_3_2",
"to_port": 0
},
{
"from": "sdf3d_translate_4_3_2_2_2",
"from_port": 0,
"to": "sdf3d_repeat",
"to_port": 0
},
{
"from": "sdf3d_rotate_2_2_2",
"from_port": 0,
"to": "sdf3d_translate_4_3_2_2_2_2",
"to_port": 0
},
{
"from": "sdf3d_cylinder",
"from_port": 0,
"to": "sdf3d_translate_4_2",
"to_port": 0
},
{
"from": "sdf3d_smoothboolean_3_3",
"from_port": 0,
"to": "sdf3d_smoothboolean_3",
"to_port": 0
},
{
"from": "sdf3d_sphere_2",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_3",
"to_port": 1
},
{
"from": "sdf3d_translate_4",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_3",
"to_port": 0
},
{
"from": "sdf3d_box_2_2",
"from_port": 0,
"to": "sdf3d_rotate_2_2",
"to_port": 0
},
{
"from": "sdf3d_box_2_2",
"from_port": 0,
"to": "sdf3d_translate_4_3_2_2_2",
"to_port": 0
},
{
"from": "sdf3d_smoothboolean_3_2_3_2",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2_3_2_2",
"to_port": 0
},
{
"from": "sdf3d_smoothboolean_3_2_3_2_2",
"from_port": 0,
"to": "sdf3d_translate_4_3_3",
"to_port": 0
},
{
"from": "sdf3d_sphere_2_3",
"from_port": 0,
"to": "sdf3d_translate_4_3_2_2_2_3",
"to_port": 0
},
{
"from": "sdf3d_translate_4_3_2_2_2_3",
"from_port": 0,
"to": "sdf3d_boolean",
"to_port": 0
},
{
"from": "sdf3d_boolean",
"from_port": 0,
"to": "sdf3d_rotate_2_2_2",
"to_port": 0
},
{
"from": "sdf3d_translate_4_3_2_2_2_2",
"from_port": 0,
"to": "sdroundedshape",
"to_port": 0
},
{
"from": "sdroundedshape",
"from_port": 0,
"to": "sdf3d_smoothboolean_3_2_3_2_2",
"to_port": 1
},
{
"from": "sdf3d_repeat",
"from_port": 0,
"to": "sdf3d_rotate_2_2_3",
"to_port": 0
},
{
"from": "sdf3d_rotate_2_2_3",
"from_port": 0,
"to": "sdf3d_boolean",
"to_port": 1
},
{
"from": "sdf3d_translate_4_3_3",
"from_port": 0,
"to": "gen_outputs",
"to_port": 0
},
{
"from": "sdf3d_scale_2",
"from_port": 0,
"to": "sdf3d_translate_4_2_2",
"to_port": 0
},
{
"from": "sdf3d_translate_4_2",
"from_port": 0,
"to": "sdf3d_scale_2",
"to_port": 0
}
],
"label": "Skull",
"name": "graph_3_2",
"node_position": {
"x": -184.234314,
"y": 34.957581
},
"nodes": [
{
"name": "sdf3d_smoothboolean_3",
"node_position": {
"x": -841.989258,
"y": 938.422729
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"k": 0.04,
"op": 0,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_smoothboolean"
},
{
"name": "sdf3d_translate_4",
"node_position": {
"x": -1309.989258,
"y": 736.422729
},
"parameters": {
"x": 0.52,
"y": -0.22,
"z": 0
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_smoothboolean_3_2",
"node_position": {
"x": -629.489258,
"y": 873.422729
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"k": 0.17,
"op": 1,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_smoothboolean"
},
{
"name": "sdf3d_sphere_2_2",
"node_position": {
"x": -830.318359,
"y": 1023.672852
},
"parameters": {
"r": 0.07
},
"type": "sdf3d_sphere"
},
{
"name": "sdf3d_translate_4_3",
"node_position": {
"x": -834.318359,
"y": 1078.672852
},
"parameters": {
"x": 0.13,
"y": -0.04,
"z": 0.18
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_sphere_2_2_2",
"node_position": {
"x": -831.318359,
"y": 1179.672852
},
"parameters": {
"r": 0.08
},
"type": "sdf3d_sphere"
},
{
"name": "sdf3d_sphere_2",
"node_position": {
"x": -1297.989258,
"y": 844.922729
},
"parameters": {
"r": 0.28
},
"type": "sdf3d_sphere"
},
{
"name": "sdf3d_box_2",
"node_position": {
"x": -855.193726,
"y": 1338.172852
},
"parameters": {
"r": 0,
"sx": 0.05,
"sy": 0.05,
"sz": 0.05
},
"type": "sdf3d_box"
},
{
"name": "sdf3d_translate_4_3_2",
"node_position": {
"x": -834.318359,
"y": 1232.672852
},
"parameters": {
"x": 0.12,
"y": -0.03,
"z": 0.18
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_rotate_2",
"node_position": {
"x": -839.193726,
"y": 1471.172852
},
"parameters": {
"a": 0,
"ax": -30,
"ay": 45,
"az": 0,
"x": 0.35,
"y": 0,
"z": 0
},
"shader_model": {
"code": "",
"global": "vec3 rotate3d(vec3 p, vec3 a) {\n\tvec3 rv;\n\tfloat c;\n\tfloat s;\n\tc = cos(a.x);\n\ts = sin(a.x);\n\trv.x = p.x;\n\trv.y = p.y*c+p.z*s;\n\trv.z = -p.y*s+p.z*c;\n\tc = cos(a.y);\n\ts = sin(a.y);\n\tp.x = rv.x*c+rv.z*s;\n\tp.y = rv.y;\n\tp.z = -rv.x*s+rv.z*c;\n\tc = cos(a.z);\n\ts = sin(a.z);\n\trv.x = p.x*c+p.y*s;\n\trv.y = -p.x*s+p.y*c;\n\trv.z = p.z;\n\treturn rv;\n}\n",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in",
"type": "sdf3d"
}
],
"instance": "",
"name": "Rotate",
"outputs": [
{
"sdf3d": "$in(rotate3d($uv, -vec3($ax, $ay, $az)*0.01745329251))",
"type": "sdf3d"
}
],
"parameters": [
{
"default": 0,
"label": "X",
"max": 180,
"min": -180,
"name": "ax",
"step": 1,
"type": "float"
},
{
"default": 0,
"label": "Y",
"max": 180,
"min": -180,
"name": "ay",
"step": 1,
"type": "float"
},
{
"default": 0,
"label": "Z",
"max": 180,
"min": -180,
"name": "az",
"step": 1,
"type": "float"
}
]
},
"type": "shader"
},
{
"name": "sdf3d_translate_4_3_2_2",
"node_position": {
"x": -840.193726,
"y": 1600.172852
},
"parameters": {
"x": 0,
"y": 0.11,
"z": 0.19
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_smoothboolean_3_2_3",
"node_position": {
"x": -623.818359,
"y": 1236.172852
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"k": 0.09,
"op": 1,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_smoothboolean"
},
{
"name": "sdf3d_smoothboolean_3_2_2",
"node_position": {
"x": -622.818359,
"y": 1073.172852
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"k": 0.15,
"op": 0,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_smoothboolean"
},
{
"name": "sdf3d_translate_4_2_2",
"node_position": {
"x": -832.989258,
"y": 826.922729
},
"parameters": {
"x": 0,
"y": 0.24,
"z": 0.01
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_smoothboolean_3_2_3_2",
"node_position": {
"x": -602.693726,
"y": 1454.672852
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"k": 0.03,
"op": 1,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_smoothboolean"
},
{
"name": "sdf3d_translate_4_2",
"node_position": {
"x": -1141.989258,
"y": 1070.922729
},
"parameters": {
"x": 0,
"y": 0.21,
"z": 0.08
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_translate_4_3_3",
"node_position": {
"x": -363.318359,
"y": 1762.672852
},
"parameters": {
"x": 0.15,
"y": 0,
"z": 0.18
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in",
"type": "sdf3d"
}
],
"instance": "",
"name": "Mirror",
"outputs": [
{
"sdf3d": "$in(vec3(abs($uv.x), $uv.y, $uv.z))",
"type": "sdf3d"
}
],
"parameters": [
]
},
"type": "shader"
},
{
"name": "gen_inputs",
"node_position": {
"x": -1375.989258,
"y": 1121.935181
},
"parameters": {
},
"ports": [
],
"type": "ios"
},
{
"name": "gen_outputs",
"node_position": {
"x": -179.318359,
"y": 1763.935181
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "sdf3d"
}
],
"type": "ios"
},
{
"name": "gen_parameters",
"node_position": {
"x": -1028.995361,
"y": 476.422729
},
"parameters": {
},
"type": "remote",
"widgets": [
]
},
{
"name": "sdf3d_translate_4_3_2_2_2",
"node_position": {
"x": -1172.482544,
"y": 1931.119385
},
"parameters": {
"x": 0,
"y": 0.14,
"z": 0
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in",
"type": "sdf3d"
}
],
"instance": "",
"name": "Translate",
"outputs": [
{
"sdf3d": "$in($uv-vec3($x, $y, $z))",
"type": "sdf3d"
}
],
"parameters": [
{
"default": 0,
"label": "X",
"max": 1,
"min": -1,
"name": "x",
"step": 0.01,
"type": "float"
},
{
"default": 0,
"label": "Y",
"max": 1,
"min": -1,
"name": "y",
"step": 0.01,
"type": "float"
},
{
"default": 0,
"label": "Z",
"max": 1,
"min": -1,
"name": "z",
"step": 0.01,
"type": "float"
}
]
},
"type": "shader"
},
{
"name": "sdf3d_rotate_2_2",
"node_position": {
"x": -1172.482544,
"y": 1829.119385
},
"parameters": {
"a": 0,
"ax": 0,
"ay": 0,
"az": 45,
"x": 0.35,
"y": 0,
"z": 0
},
"shader_model": {
"code": "",
"global": "vec3 rotate3d(vec3 p, vec3 a) {\n\tvec3 rv;\n\tfloat c;\n\tfloat s;\n\tc = cos(a.x);\n\ts = sin(a.x);\n\trv.x = p.x;\n\trv.y = p.y*c+p.z*s;\n\trv.z = -p.y*s+p.z*c;\n\tc = cos(a.y);\n\ts = sin(a.y);\n\tp.x = rv.x*c+rv.z*s;\n\tp.y = rv.y;\n\tp.z = -rv.x*s+rv.z*c;\n\tc = cos(a.z);\n\ts = sin(a.z);\n\trv.x = p.x*c+p.y*s;\n\trv.y = -p.x*s+p.y*c;\n\trv.z = p.z;\n\treturn rv;\n}\n",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in",
"type": "sdf3d"
}
],
"instance": "",
"name": "Rotate",
"outputs": [
{
"sdf3d": "$in(rotate3d($uv, -vec3($ax, $ay, $az)*0.01745329251))",
"type": "sdf3d"
}
],
"parameters": [
{
"default": 0,
"label": "X",
"max": 180,
"min": -180,
"name": "ax",
"step": 1,
"type": "float"
},
{
"default": 0,
"label": "Y",
"max": 180,
"min": -180,
"name": "ay",
"step": 1,
"type": "float"
},
{
"default": 0,
"label": "Z",
"max": 180,
"min": -180,
"name": "az",
"step": 1,
"type": "float"
}
]
},
"type": "shader"
},
{
"name": "sdf3d_repeat",
"node_position": {
"x": -1166.482544,
"y": 2035.119385
},
"parameters": {
"a": 0,
"c": 15,
"r": 0.24,
"rx": 4,
"ry": 4,
"s": 0.3,
"x": 0.35,
"y": 0,
"z": 0
},
"shader_model": {
"code": "",
"global": "vec3 circle_repeat_transform(vec3 p, float count) {\n\tfloat r = 6.28/count;\n\tfloat pa = atan(p.x, p.y);\n\tfloat a = mod(pa+0.5*r, r)-0.5*r;\n\tvec3 rv;\n\tfloat c = cos(a-pa);\n\tfloat s = sin(a-pa);\n\trv.x = p.x*c+p.y*s;\n\trv.y = -p.x*s+p.y*c;\n\trv.z = p.z;\n\treturn rv;\n}\n",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in",
"type": "sdf3d"
}
],
"instance": "",
"name": "Circle Repeat",
"outputs": [
{
"sdf3d": "$in(circle_repeat_transform($uv, $c))",
"type": "sdf3d"
}
],
"parameters": [
{
"default": 4,
"label": "",
"max": 32,
"min": 1,
"name": "c",
"step": 1,
"type": "float"
}
]
},
"type": "shader"
},
{
"name": "sdf3d_rotate_2_2_2",
"node_position": {
"x": -791.235718,
"y": 1859.869385
},
"parameters": {
"a": 0,
"ax": -90,
"ay": 0,
"az": 0,
"x": 0.35,
"y": 0,
"z": 0
},
"shader_model": {
"code": "",
"global": "vec3 rotate3d(vec3 p, vec3 a) {\n\tvec3 rv;\n\tfloat c;\n\tfloat s;\n\tc = cos(a.x);\n\ts = sin(a.x);\n\trv.x = p.x;\n\trv.y = p.y*c+p.z*s;\n\trv.z = -p.y*s+p.z*c;\n\tc = cos(a.y);\n\ts = sin(a.y);\n\tp.x = rv.x*c+rv.z*s;\n\tp.y = rv.y;\n\tp.z = -rv.x*s+rv.z*c;\n\tc = cos(a.z);\n\ts = sin(a.z);\n\trv.x = p.x*c+p.y*s;\n\trv.y = -p.x*s+p.y*c;\n\trv.z = p.z;\n\treturn rv;\n}\n",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in",
"type": "sdf3d"
}
],
"instance": "",
"name": "Rotate",
"outputs": [
{
"sdf3d": "$in(rotate3d($uv, -vec3($ax, $ay, $az)*0.01745329251))",
"type": "sdf3d"
}
],
"parameters": [
{
"default": 0,
"label": "X",
"max": 180,
"min": -180,
"name": "ax",
"step": 1,
"type": "float"
},
{
"default": 0,
"label": "Y",
"max": 180,
"min": -180,
"name": "ay",
"step": 1,
"type": "float"
},
{
"default": 0,
"label": "Z",
"max": 180,
"min": -180,
"name": "az",
"step": 1,
"type": "float"
}
]
},
"type": "shader"
},
{
"name": "sdf3d_translate_4_3_2_2_2_2",
"node_position": {
"x": -788.235718,
"y": 1967.869385
},
"parameters": {
"x": 0,
"y": 0.315,
"z": 0.08
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_cylinder",
"node_position": {
"x": -1161,
"y": 994.5
},
"parameters": {
"l": 0.06,
"r": 0.15,
"sx": 0.25,
"sy": 0.25,
"sz": 0.5
},
"type": "sdf3d_cylinder"
},
{
"name": "sdf3d_smoothboolean_3_3",
"node_position": {
"x": -1104.305908,
"y": 815.75
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"k": 0.1,
"op": 1,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_smoothboolean"
},
{
"name": "sdf3d_box_2_2",
"node_position": {
"x": -1190.880981,
"y": 1701
},
"parameters": {
"r": 0,
"sx": 0.01,
"sy": 0.01,
"sz": 0.015
},
"type": "sdf3d_box"
},
{
"name": "sdf3d_smoothboolean_3_2_3_2_2",
"node_position": {
"x": -562.468933,
"y": 1761.75
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"k": 0.05,
"op": 0,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_smoothboolean"
},
{
"name": "sdf3d_sphere_2_3",
"node_position": {
"x": -1165.397095,
"y": 2204.25
},
"parameters": {
"r": 0.28
},
"type": "sdf3d_sphere"
},
{
"name": "sdf3d_translate_4_3_2_2_2_3",
"node_position": {
"x": -1175.397095,
"y": 2261.5
},
"parameters": {
"x": 0,
"y": 0.28,
"z": 0
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_boolean",
"node_position": {
"x": -990.397095,
"y": 2076
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"op": 2,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_boolean"
},
{
"name": "sdroundedshape",
"node_position": {
"x": -794.225342,
"y": 2070.75
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"k": 0.15,
"op": 0,
"r": 0.01,
"w": 0.28
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in",
"type": "sdf3d"
}
],
"instance": "",
"name": "Rounded",
"outputs": [
{
"sdf3d": "$in($uv)-$r",
"type": "sdf3d"
}
],
"parameters": [
{
"default": 0,
"label": "",
"max": 1,
"min": 0,
"name": "r",
"step": 0.01,
"type": "float"
}
]
},
"type": "shader"
},
{
"name": "sdf3d_rotate_2_2_3",
"node_position": {
"x": -1172.268311,
"y": 2085.75
},
"parameters": {
"a": 0,
"ax": 0,
"ay": 0,
"az": 11,
"x": 0.35,
"y": 0,
"z": 0
},
"shader_model": {
"code": "",
"global": "vec3 rotate3d(vec3 p, vec3 a) {\n\tvec3 rv;\n\tfloat c;\n\tfloat s;\n\tc = cos(a.x);\n\ts = sin(a.x);\n\trv.x = p.x;\n\trv.y = p.y*c+p.z*s;\n\trv.z = -p.y*s+p.z*c;\n\tc = cos(a.y);\n\ts = sin(a.y);\n\tp.x = rv.x*c+rv.z*s;\n\tp.y = rv.y;\n\tp.z = -rv.x*s+rv.z*c;\n\tc = cos(a.z);\n\ts = sin(a.z);\n\trv.x = p.x*c+p.y*s;\n\trv.y = -p.x*s+p.y*c;\n\trv.z = p.z;\n\treturn rv;\n}\n",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in",
"type": "sdf3d"
}
],
"instance": "",
"name": "Rotate",
"outputs": [
{
"sdf3d": "$in(rotate3d($uv, -vec3($ax, $ay, $az)*0.01745329251))",
"type": "sdf3d"
}
],
"parameters": [
{
"default": 0,
"label": "X",
"max": 180,
"min": -180,
"name": "ax",
"step": 1,
"type": "float"
},
{
"default": 0,
"label": "Y",
"max": 180,
"min": -180,
"name": "ay",
"step": 1,
"type": "float"
},
{
"default": 0,
"label": "Z",
"max": 180,
"min": -180,
"name": "az",
"step": 1,
"type": "float"
}
]
},
"type": "shader"
},
{
"name": "sdf3d_scale_2",
"node_position": {
"x": -825.646118,
"y": 772.643799
},
"parameters": {
"a": 0,
"s": 0.48,
"x": 0.35,
"y": 0,
"z": 0
},
"type": "sdf3d_scale"
}
],
"parameters": {
},
"type": "graph"
},
{
"connections": [
{
"from": "sdf3d_box",
"from_port": 0,
"to": "sdf3d_boolean",
"to_port": 1
},
{
"from": "sdf3d_box_2",
"from_port": 0,
"to": "sdf3d_translate_3_2",
"to_port": 0
},
{
"from": "sdf3d_translate_3_2",
"from_port": 0,
"to": "sdf3d_boolean",
"to_port": 0
},
{
"from": "sdf3d_translate_3_2_2",
"from_port": 0,
"to": "sdf3d_boolean_2",
"to_port": 0
},
{
"from": "sdf3d_boolean",
"from_port": 0,
"to": "sdf3d_boolean_2",
"to_port": 1
},
{
"from": "sdf3d_box_2",
"from_port": 0,
"to": "sdf3d_translate_3_2_2",
"to_port": 0
},
{
"from": "sdf3d_boolean_2",
"from_port": 0,
"to": "gen_outputs",
"to_port": 0
}
],
"label": "Brick",
"name": "graph_4",
"node_position": {
"x": -209.947205,
"y": 122.904633
},
"nodes": [
{
"name": "sdf3d_box",
"node_position": {
"x": -564.5,
"y": -63
},
"parameters": {
"r": 0.01,
"sx": 0.26,
"sy": 0.15,
"sz": 0.1
},
"type": "sdf3d_box"
},
{
"name": "sdf3d_translate_3_2",
"node_position": {
"x": -554.5,
"y": -166
},
"parameters": {
"x": 0,
"y": 0,
"z": 0.45
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_box_2",
"node_position": {
"x": -570.5,
"y": -294.5
},
"parameters": {
"r": 0,
"sx": 0.21,
"sy": 0.1,
"sz": 0.36
},
"type": "sdf3d_box"
},
{
"name": "sdf3d_boolean",
"node_position": {
"x": -358.5,
"y": -118
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"op": 1,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_boolean"
},
{
"name": "sdf3d_translate_3_2_2",
"node_position": {
"x": -343.333344,
"y": -224.333344
},
"parameters": {
"x": 0,
"y": 0,
"z": -0.45
},
"type": "sdf3d_translate"
},
{
"name": "sdf3d_boolean_2",
"node_position": {
"x": -147.333344,
"y": -168.333344
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"op": 1,
"r": 0.3,
"w": 0.28
},
"type": "sdf3d_boolean"
},
{
"name": "gen_inputs",
"node_position": {
"x": -748.5,
"y": -159.361115
},
"parameters": {
},
"ports": [
],
"type": "ios"
},
{
"name": "gen_outputs",
"node_position": {
"x": 60.666656,
"y": -165.361115
},
"parameters": {
},
"ports": [
{
"name": "port0",
"type": "sdf3d"
}
],
"type": "ios"
},
{
"name": "gen_parameters",
"node_position": {
"x": -488.111115,
"y": -466.5
},
"parameters": {
},
"type": "remote",
"widgets": [
]
}
],
"parameters": {
},
"type": "graph"
},
{
"name": "sdf3d_rotate_2",
"node_position": {
"x": -241.447205,
"y": 169.404633
},
"parameters": {
"a": 0,
"ax": 25,
"ay": 23,
"az": -8,
"x": 0.35,
"y": 0,
"z": 0
},
"type": "sdf3d_rotate"
},
{
"name": "sdf3d_translate_3_2",
"node_position": {
"x": -233.447205,
"y": 270.404633
},
"parameters": {
"x": 0,
"y": 0,
"z": 0.25
},
"type": "sdf3d_translate"
}
],
"parameters": {
},
"type": "graph"
}