2019-11-06 08:30:36 +01:00
|
|
|
{
|
|
|
|
"name": "sdroundedshape",
|
|
|
|
"node_position": {
|
|
|
|
"x": 0,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"bevel": 0,
|
|
|
|
"cx": 0,
|
|
|
|
"cy": 0,
|
|
|
|
"h": 0.08,
|
|
|
|
"k": 0.15,
|
|
|
|
"op": 0,
|
2019-12-15 12:41:00 +01:00
|
|
|
"r": 0.1,
|
2019-11-06 08:30:36 +01:00
|
|
|
"w": 0.28
|
|
|
|
},
|
|
|
|
"shader_model": {
|
|
|
|
"code": "",
|
2019-12-15 12:41:00 +01:00
|
|
|
"global": "",
|
2019-11-06 08:30:36 +01:00
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"default": "0.0",
|
|
|
|
"label": "",
|
|
|
|
"name": "in",
|
2019-12-15 12:41:00 +01:00
|
|
|
"type": "sdf2d"
|
2019-11-06 08:30:36 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"instance": "",
|
|
|
|
"name": "sdRoundedShape",
|
|
|
|
"outputs": [
|
|
|
|
{
|
2019-12-15 12:41:00 +01:00
|
|
|
"sdf2d": "$in($uv)-$r",
|
|
|
|
"type": "sdf2d"
|
2019-11-06 08:30:36 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"default": 0,
|
|
|
|
"label": "",
|
|
|
|
"max": 1,
|
|
|
|
"min": 0,
|
|
|
|
"name": "r",
|
|
|
|
"step": 0.01,
|
|
|
|
"type": "float"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"type": "shader"
|
|
|
|
}
|