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

57 lines
797 B
Plaintext
Raw Normal View History

2019-11-06 08:30:36 +01:00
{
"name": "sdcircle",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"cx": 0,
"cy": 0,
"r": 0.25
2019-11-06 08:30:36 +01:00
},
"shader_model": {
"code": "",
"global": "",
2019-11-06 08:30:36 +01:00
"inputs": [
],
"instance": "",
"name": "sdCircle",
"outputs": [
{
"sdf2d": "length($uv-0.5*vec2($cx+1.0, $cy+1.0))-$r",
"type": "sdf2d"
2019-11-06 08:30:36 +01:00
}
],
"parameters": [
{
"default": 0.5,
"label": "Radius",
"max": 1,
"min": 0,
"name": "r",
"step": 0.01,
"type": "float"
},
{
"default": 0,
"label": "Center X",
"max": 1,
"min": -1,
"name": "cx",
"step": 0.01,
"type": "float"
},
{
"default": 0,
"label": "Center Y",
"max": 1,
"min": -1,
"name": "cy",
"step": 0.01,
"type": "float"
}
]
},
"type": "shader"
}