2019-12-21 07:44:44 +01:00
|
|
|
{
|
|
|
|
"name": "sdf3d_rounded",
|
|
|
|
"node_position": {
|
|
|
|
"x": 0,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"bevel": 0,
|
|
|
|
"cx": 0,
|
|
|
|
"cy": 0,
|
|
|
|
"h": 0.08,
|
|
|
|
"k": 0.15,
|
|
|
|
"op": 0,
|
2020-02-06 21:51:14 +01:00
|
|
|
"r": 0.1,
|
2019-12-21 07:44:44 +01:00
|
|
|
"w": 0.28
|
|
|
|
},
|
|
|
|
"shader_model": {
|
2020-02-06 21:51:14 +01:00
|
|
|
"code": "vec2 $(name_uv)_v = $in($uv);",
|
2019-12-21 07:44:44 +01:00
|
|
|
"global": "",
|
|
|
|
"inputs": [
|
|
|
|
{
|
2020-02-06 21:51:14 +01:00
|
|
|
"default": "vec2(0.0)",
|
2019-12-21 07:44:44 +01:00
|
|
|
"label": "",
|
|
|
|
"name": "in",
|
2020-02-06 21:51:14 +01:00
|
|
|
"type": "sdf3dc"
|
2019-12-21 07:44:44 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"instance": "",
|
|
|
|
"name": "Rounded",
|
|
|
|
"outputs": [
|
|
|
|
{
|
2020-02-06 21:51:14 +01:00
|
|
|
"sdf3dc": "vec2($(name_uv)_v.x-$r, $(name_uv)_v.y)",
|
|
|
|
"type": "sdf3dc"
|
2019-12-21 07:44:44 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": [
|
|
|
|
{
|
2020-02-06 21:51:14 +01:00
|
|
|
"control": "None",
|
2019-12-21 07:44:44 +01:00
|
|
|
"default": 0,
|
|
|
|
"label": "",
|
|
|
|
"max": 1,
|
|
|
|
"min": 0,
|
|
|
|
"name": "r",
|
|
|
|
"step": 0.01,
|
|
|
|
"type": "float"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"type": "shader"
|
|
|
|
}
|