material-maker/addons/material_maker/nodes/sdboolean.mmg

65 lines
893 B
Plaintext
Raw Normal View History

2019-11-06 08:30:36 +01:00
{
"name": "sdboolean",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"op": 1,
2019-11-06 08:30:36 +01:00
"r": 0.3,
"w": 0.28
},
"shader_model": {
"code": "",
"global": "",
2019-11-06 08:30:36 +01:00
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in1",
"type": "sdf2d"
2019-11-06 08:30:36 +01:00
},
{
"default": "0.0",
"label": "",
"name": "in2",
"type": "sdf2d"
2019-11-06 08:30:36 +01:00
}
],
"instance": "",
"name": "sdBoolean",
"outputs": [
{
"sdf2d": "$op $in1($uv), $in2($uv))",
"type": "sdf2d"
2019-11-06 08:30:36 +01:00
}
],
"parameters": [
{
"default": 2,
2019-11-06 08:30:36 +01:00
"label": "",
"name": "op",
"type": "enum",
"values": [
{
"name": "Union",
"value": "min("
2019-11-06 08:30:36 +01:00
},
{
"name": "Subtraction",
"value": "max(-"
2019-11-06 08:30:36 +01:00
},
{
"name": "Intersection",
"value": "max("
2019-11-06 08:30:36 +01:00
}
]
}
]
},
"type": "shader"
}