mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
641 lines
11 KiB
Plaintext
641 lines
11 KiB
Plaintext
{
|
|
"connections": [
|
|
{
|
|
"from": "graph",
|
|
"from_port": 0,
|
|
"to": "Material",
|
|
"to_port": 4
|
|
},
|
|
{
|
|
"from": "graph",
|
|
"from_port": 2,
|
|
"to": "Material",
|
|
"to_port": 6
|
|
},
|
|
{
|
|
"from": "graph",
|
|
"from_port": 1,
|
|
"to": "Material",
|
|
"to_port": 5
|
|
},
|
|
{
|
|
"from": "transform",
|
|
"from_port": 0,
|
|
"to": "blend",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "blend",
|
|
"from_port": 0,
|
|
"to": "graph",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "graph",
|
|
"from_port": 0,
|
|
"to": "edge_detect_1",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "edge_detect_1",
|
|
"from_port": 0,
|
|
"to": "colorize",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "colorize",
|
|
"from_port": 0,
|
|
"to": "Material",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "box",
|
|
"from_port": 0,
|
|
"to": "blend",
|
|
"to_port": 1
|
|
},
|
|
{
|
|
"from": "sphere",
|
|
"from_port": 0,
|
|
"to": "transform",
|
|
"to_port": 0
|
|
}
|
|
],
|
|
"label": "Graph",
|
|
"name": "49",
|
|
"node_position": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"nodes": [
|
|
{
|
|
"name": "Material",
|
|
"node_position": {
|
|
"x": -165,
|
|
"y": 7
|
|
},
|
|
"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": 11,
|
|
"subsurf_scatter_strength": 0
|
|
},
|
|
"type": "material"
|
|
},
|
|
{
|
|
"name": "transform",
|
|
"node_position": {
|
|
"x": -997.5,
|
|
"y": -141
|
|
},
|
|
"parameters": {
|
|
"repeat": true,
|
|
"rotate": 0,
|
|
"scale_x": 0.5,
|
|
"scale_y": 0.5,
|
|
"translate_x": 0.25,
|
|
"translate_y": 0.25
|
|
},
|
|
"type": "transform"
|
|
},
|
|
{
|
|
"connections": [
|
|
{
|
|
"from": "normal_map",
|
|
"from_port": 0,
|
|
"to": "gen_outputs",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "colorize",
|
|
"from_port": 0,
|
|
"to": "gen_outputs",
|
|
"to_port": 2
|
|
},
|
|
{
|
|
"from": "gen_inputs",
|
|
"from_port": 0,
|
|
"to": "normal_map",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "gen_inputs",
|
|
"from_port": 0,
|
|
"to": "colorize",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "gen_inputs",
|
|
"from_port": 0,
|
|
"to": "occlusion",
|
|
"to_port": 0
|
|
},
|
|
{
|
|
"from": "occlusion",
|
|
"from_port": 0,
|
|
"to": "gen_outputs",
|
|
"to_port": 1
|
|
}
|
|
],
|
|
"label": "NOD",
|
|
"name": "graph",
|
|
"node_position": {
|
|
"x": -431.27063,
|
|
"y": 70.5
|
|
},
|
|
"nodes": [
|
|
{
|
|
"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": "gen_inputs",
|
|
"from_port": 0,
|
|
"to": "nm_convolution",
|
|
"to_port": 0
|
|
}
|
|
],
|
|
"label": "Normal Map",
|
|
"name": "normal_map",
|
|
"node_position": {
|
|
"x": -57.5,
|
|
"y": -41
|
|
},
|
|
"nodes": [
|
|
{
|
|
"name": "buffer",
|
|
"node_position": {
|
|
"x": -694.663818,
|
|
"y": 98.60614
|
|
},
|
|
"parameters": {
|
|
"lod": 0,
|
|
"size": 11
|
|
},
|
|
"type": "buffer"
|
|
},
|
|
{
|
|
"convolution_params": {
|
|
"input_type": "f",
|
|
"matrix": [
|
|
[
|
|
[
|
|
-1,
|
|
-1,
|
|
0
|
|
],
|
|
[
|
|
0,
|
|
-2,
|
|
0
|
|
],
|
|
[
|
|
1,
|
|
-1,
|
|
0
|
|
]
|
|
],
|
|
[
|
|
[
|
|
-2,
|
|
0,
|
|
0
|
|
],
|
|
0,
|
|
[
|
|
2,
|
|
0,
|
|
0
|
|
]
|
|
],
|
|
[
|
|
[
|
|
-1,
|
|
1,
|
|
0
|
|
],
|
|
[
|
|
0,
|
|
2,
|
|
0
|
|
],
|
|
[
|
|
1,
|
|
1,
|
|
0
|
|
]
|
|
]
|
|
],
|
|
"output_type": "rgb",
|
|
"x": 1,
|
|
"y": 1
|
|
},
|
|
"name": "nm_convolution",
|
|
"node_position": {
|
|
"x": -690.25,
|
|
"y": 174.25
|
|
},
|
|
"parameters": {
|
|
"size": 11
|
|
},
|
|
"type": "convolution"
|
|
},
|
|
{
|
|
"name": "nm_postprocess",
|
|
"node_position": {
|
|
"x": -690.25,
|
|
"y": 222.25
|
|
},
|
|
"parameters": {
|
|
"amount": 2,
|
|
"format": 0,
|
|
"size": 11,
|
|
"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": -698.910156,
|
|
"y": -42.916687
|
|
},
|
|
"parameters": {
|
|
"amount": 0.5,
|
|
"param0": 11,
|
|
"param1": 2,
|
|
"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": 11,
|
|
"param1": 2,
|
|
"param2": 0,
|
|
"size": 4
|
|
},
|
|
"type": "graph"
|
|
},
|
|
{
|
|
"name": "occlusion",
|
|
"node_position": {
|
|
"x": -81.811829,
|
|
"y": 56.5
|
|
},
|
|
"parameters": {
|
|
"param0": 8,
|
|
"param1": 50,
|
|
"param2": 5
|
|
},
|
|
"type": "occlusion"
|
|
},
|
|
{
|
|
"name": "colorize",
|
|
"node_position": {
|
|
"x": -58.5,
|
|
"y": 130
|
|
},
|
|
"parameters": {
|
|
"gradient": {
|
|
"interpolation": 1,
|
|
"points": [
|
|
{
|
|
"a": 1,
|
|
"b": 1,
|
|
"g": 1,
|
|
"pos": 0,
|
|
"r": 1
|
|
},
|
|
{
|
|
"a": 1,
|
|
"b": 0,
|
|
"g": 0,
|
|
"pos": 1,
|
|
"r": 0
|
|
}
|
|
],
|
|
"type": "Gradient"
|
|
}
|
|
},
|
|
"type": "colorize"
|
|
},
|
|
{
|
|
"name": "gen_inputs",
|
|
"node_position": {
|
|
"x": -381.811829,
|
|
"y": 49.5
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"ports": [
|
|
{
|
|
"name": "port0",
|
|
"type": "rgba"
|
|
}
|
|
],
|
|
"type": "ios"
|
|
},
|
|
{
|
|
"name": "gen_outputs",
|
|
"node_position": {
|
|
"x": 244.5,
|
|
"y": 49.5
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"ports": [
|
|
{
|
|
"name": "port0",
|
|
"type": "rgba"
|
|
},
|
|
{
|
|
"name": "port2",
|
|
"type": "rgba"
|
|
},
|
|
{
|
|
"name": "port1",
|
|
"type": "rgba"
|
|
}
|
|
],
|
|
"type": "ios"
|
|
},
|
|
{
|
|
"name": "gen_parameters",
|
|
"node_position": {
|
|
"x": -27.270599,
|
|
"y": -117
|
|
},
|
|
"parameters": {
|
|
|
|
},
|
|
"type": "remote",
|
|
"widgets": [
|
|
|
|
]
|
|
}
|
|
],
|
|
"parameters": {
|
|
|
|
},
|
|
"type": "graph"
|
|
},
|
|
{
|
|
"name": "colorize",
|
|
"node_position": {
|
|
"x": -486.598755,
|
|
"y": -27.262512
|
|
},
|
|
"parameters": {
|
|
"gradient": {
|
|
"interpolation": 1,
|
|
"points": [
|
|
{
|
|
"a": 1,
|
|
"b": 1,
|
|
"g": 1,
|
|
"pos": 0,
|
|
"r": 1
|
|
},
|
|
{
|
|
"a": 1,
|
|
"b": 0,
|
|
"g": 0,
|
|
"pos": 0.027273,
|
|
"r": 0
|
|
}
|
|
],
|
|
"type": "Gradient"
|
|
}
|
|
},
|
|
"type": "colorize"
|
|
},
|
|
{
|
|
"name": "blend",
|
|
"node_position": {
|
|
"x": -718.608398,
|
|
"y": 67.325012
|
|
},
|
|
"parameters": {
|
|
"amount": 1,
|
|
"blend_type": 9
|
|
},
|
|
"type": "blend"
|
|
},
|
|
{
|
|
"name": "edge_detect_1",
|
|
"node_position": {
|
|
"x": -497.608398,
|
|
"y": -80.674988
|
|
},
|
|
"parameters": {
|
|
"size": 7
|
|
},
|
|
"type": "edge_detect_1"
|
|
},
|
|
{
|
|
"name": "box",
|
|
"node_position": {
|
|
"x": -988.422119,
|
|
"y": 68.460938
|
|
},
|
|
"parameters": {
|
|
"cx": 0.5,
|
|
"cy": 0.5,
|
|
"cz": 0.5,
|
|
"r": 0.5,
|
|
"rx": 40,
|
|
"ry": 40,
|
|
"rz": 90,
|
|
"sx": 0.25,
|
|
"sy": 0.25,
|
|
"sz": 0.25
|
|
},
|
|
"type": "box"
|
|
},
|
|
{
|
|
"name": "sphere",
|
|
"node_position": {
|
|
"x": -989.422119,
|
|
"y": -247.039063
|
|
},
|
|
"parameters": {
|
|
"cx": 0.5,
|
|
"cy": 0.5,
|
|
"r": 0.5
|
|
},
|
|
"type": "sphere"
|
|
}
|
|
],
|
|
"parameters": {
|
|
|
|
},
|
|
"type": "graph"
|
|
} |