mirror of
https://github.com/Relintai/mat_maker_gd.git
synced 2025-04-30 10:57:56 +02:00
64 lines
1.2 KiB
Plaintext
64 lines
1.2 KiB
Plaintext
{
|
|
"name": "sdtranslate",
|
|
"node_position": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"parameters": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"shader_model": {
|
|
"code": "",
|
|
"global": "",
|
|
"inputs": [
|
|
{
|
|
"default": "0.0",
|
|
"label": "",
|
|
"longdesc": "The input shape, defined as a signed distance function",
|
|
"name": "in",
|
|
"shortdesc": "Input",
|
|
"type": "sdf2d"
|
|
}
|
|
],
|
|
"instance": "",
|
|
"longdesc": "Translates its input shape described as signed distance function",
|
|
"name": "Translate",
|
|
"outputs": [
|
|
{
|
|
"longdesc": "The translated shape",
|
|
"sdf2d": "$in($uv-vec2($x, $y))",
|
|
"shortdesc": "Output",
|
|
"type": "sdf2d"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"control": "P1.x",
|
|
"default": 0,
|
|
"label": "X",
|
|
"longdesc": "The translation along the X axis",
|
|
"max": 1,
|
|
"min": -1,
|
|
"name": "x",
|
|
"shortdesc": "Translate.x",
|
|
"step": 0.01,
|
|
"type": "float"
|
|
},
|
|
{
|
|
"control": "P1.y",
|
|
"default": 0,
|
|
"label": "Y",
|
|
"longdesc": "The translation along the Y axis",
|
|
"max": 1,
|
|
"min": -1,
|
|
"name": "y",
|
|
"shortdesc": "Translate.y",
|
|
"step": 0.01,
|
|
"type": "float"
|
|
}
|
|
],
|
|
"shortdesc": "sdTranslate"
|
|
},
|
|
"type": "shader"
|
|
} |