mirror of
https://github.com/Relintai/mat_maker_gd.git
synced 2025-04-30 10:57:56 +02:00
70 lines
1.3 KiB
Plaintext
70 lines
1.3 KiB
Plaintext
{
|
|
"name": "sdcircle",
|
|
"node_position": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"parameters": {
|
|
"cx": 0,
|
|
"cy": 0,
|
|
"r": 0.4
|
|
},
|
|
"shader_model": {
|
|
"code": "",
|
|
"global": "",
|
|
"inputs": [
|
|
|
|
],
|
|
"instance": "",
|
|
"longdesc": "A circle described as a signed distance function",
|
|
"name": "sdCircle",
|
|
"outputs": [
|
|
{
|
|
"longdesc": "The generated signed distance function",
|
|
"sdf2d": "length($uv-vec2($cx+0.5, $cy+0.5))-$r",
|
|
"shortdesc": "Output",
|
|
"type": "sdf2d"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"control": "None",
|
|
"default": 0.5,
|
|
"label": "Radius",
|
|
"longdesc": "The radius of the circle",
|
|
"max": 1,
|
|
"min": 0,
|
|
"name": "r",
|
|
"shortdesc": "Radius",
|
|
"step": 0.01,
|
|
"type": "float"
|
|
},
|
|
{
|
|
"control": "P1.x",
|
|
"default": 0,
|
|
"label": "Center X",
|
|
"longdesc": "The position of the center on the X axis",
|
|
"max": 1,
|
|
"min": -1,
|
|
"name": "cx",
|
|
"shortdesc": "Center.x",
|
|
"step": 0.01,
|
|
"type": "float"
|
|
},
|
|
{
|
|
"control": "P1.y",
|
|
"default": 0,
|
|
"label": "Center Y",
|
|
"longdesc": "The position of the center on the Y axis",
|
|
"max": 1,
|
|
"min": -1,
|
|
"name": "cy",
|
|
"shortdesc": "Center.y",
|
|
"step": 0.01,
|
|
"type": "float"
|
|
}
|
|
],
|
|
"shortdesc": "sdCircle"
|
|
},
|
|
"type": "shader"
|
|
} |