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

51 lines
937 B
Plaintext
Raw Normal View History

2019-11-06 08:30:36 +01:00
{
"name": "sdroundedshape",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
2020-10-05 21:03:19 +02:00
"r": 0.2
2019-11-06 08:30:36 +01:00
},
"shader_model": {
"code": "",
"global": "",
2019-11-06 08:30:36 +01:00
"inputs": [
{
"default": "0.0",
"label": "",
2020-10-05 21:03:19 +02:00
"longdesc": "The input shape, defined as a signed distance function",
2019-11-06 08:30:36 +01:00
"name": "in",
2020-10-05 21:03:19 +02:00
"shortdesc": "Input",
"type": "sdf2d"
2019-11-06 08:30:36 +01:00
}
],
"instance": "",
"longdesc": "Dilates an input shape into a rounded shape",
2019-11-06 08:30:36 +01:00
"name": "sdRoundedShape",
"outputs": [
{
2020-10-05 21:03:19 +02:00
"longdesc": "The shape generated by the operation",
"sdf2d": "$in($uv)-$r",
2020-10-05 21:03:19 +02:00
"shortdesc": "Output",
"type": "sdf2d"
2019-11-06 08:30:36 +01:00
}
],
"parameters": [
{
2020-10-05 21:03:19 +02:00
"control": "None",
2019-11-06 08:30:36 +01:00
"default": 0,
"label": "",
2020-10-05 21:03:19 +02:00
"longdesc": "The length of the dilate operation",
2019-11-06 08:30:36 +01:00
"max": 1,
"min": 0,
"name": "r",
2020-10-05 21:03:19 +02:00
"shortdesc": "Radius",
2019-11-06 08:30:36 +01:00
"step": 0.01,
"type": "float"
}
2020-10-05 21:03:19 +02:00
],
"shortdesc": "sdRoundedShape"
2019-11-06 08:30:36 +01:00
},
"type": "shader"
}