2019-11-06 08:30:36 +01:00
|
|
|
{
|
|
|
|
"name": "sdcircle",
|
|
|
|
"node_position": {
|
|
|
|
"x": 0,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"cx": 0,
|
|
|
|
"cy": 0,
|
2019-12-27 22:30:49 +01:00
|
|
|
"r": 0.4
|
2019-11-06 08:30:36 +01:00
|
|
|
},
|
|
|
|
"shader_model": {
|
|
|
|
"code": "",
|
2019-12-15 12:41:00 +01:00
|
|
|
"global": "",
|
2019-11-06 08:30:36 +01:00
|
|
|
"inputs": [
|
|
|
|
|
|
|
|
],
|
|
|
|
"instance": "",
|
|
|
|
"name": "sdCircle",
|
|
|
|
"outputs": [
|
|
|
|
{
|
2019-12-27 22:30:49 +01:00
|
|
|
"sdf2d": "length($uv-vec2($cx+0.5, $cy+0.5))-$r",
|
2019-12-15 12:41:00 +01:00
|
|
|
"type": "sdf2d"
|
2019-11-06 08:30:36 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": [
|
|
|
|
{
|
2019-12-27 22:30:49 +01:00
|
|
|
"control": "Radius1.x",
|
2019-11-06 08:30:36 +01:00
|
|
|
"default": 0.5,
|
|
|
|
"label": "Radius",
|
|
|
|
"max": 1,
|
|
|
|
"min": 0,
|
|
|
|
"name": "r",
|
|
|
|
"step": 0.01,
|
|
|
|
"type": "float"
|
|
|
|
},
|
|
|
|
{
|
2019-12-27 22:30:49 +01:00
|
|
|
"control": "P1.x",
|
2019-11-06 08:30:36 +01:00
|
|
|
"default": 0,
|
|
|
|
"label": "Center X",
|
|
|
|
"max": 1,
|
|
|
|
"min": -1,
|
|
|
|
"name": "cx",
|
|
|
|
"step": 0.01,
|
|
|
|
"type": "float"
|
|
|
|
},
|
|
|
|
{
|
2019-12-27 22:30:49 +01:00
|
|
|
"control": "P1.y",
|
2019-11-06 08:30:36 +01:00
|
|
|
"default": 0,
|
|
|
|
"label": "Center Y",
|
|
|
|
"max": 1,
|
|
|
|
"min": -1,
|
|
|
|
"name": "cy",
|
|
|
|
"step": 0.01,
|
|
|
|
"type": "float"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"type": "shader"
|
|
|
|
}
|