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

77 lines
1.4 KiB
Plaintext
Raw Normal View History

{
"name": "sdf3d_elongation",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"x": 0.2,
"y": 0,
"z": 0
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
2020-10-09 22:36:25 +02:00
"default": "vec2(100, 0.0)",
"label": "",
2020-10-09 22:36:25 +02:00
"longdesc": "The input object to be elongated",
"name": "in",
2020-10-09 22:36:25 +02:00
"shortdesc": "Input",
"type": "sdf3dc"
}
],
"instance": "",
"longdesc": "Elongates its input",
"name": "Elongation",
"outputs": [
{
2020-10-09 22:36:25 +02:00
"longdesc": "The shape generated by the operation",
"sdf3dc": "$in($uv-clamp($uv, -abs(vec3($x, $y, $z)), abs(vec3($x, $y, $z))))",
2020-10-09 22:36:25 +02:00
"shortdesc": "Output",
"type": "sdf3dc"
}
],
"parameters": [
{
"control": "P1.x",
"default": 0,
"label": "X",
2020-10-09 22:36:25 +02:00
"longdesc": "The elongation along the X axis",
"max": 1,
"min": 0,
"name": "x",
2020-10-09 22:36:25 +02:00
"shortdesc": "Length.x",
"step": 0.01,
"type": "float"
},
{
"control": "P1.y",
"default": 0,
"label": "Y",
2020-10-09 22:36:25 +02:00
"longdesc": "The elongation along the Y axis",
"max": 1,
"min": 0,
"name": "y",
2020-10-09 22:36:25 +02:00
"shortdesc": "Length.y",
"step": 0.01,
"type": "float"
},
{
"control": "None",
"default": 0,
"label": "Z",
2020-10-09 22:36:25 +02:00
"longdesc": "The elongation along the Z axis",
"max": 1,
"min": 0,
"name": "z",
2020-10-09 22:36:25 +02:00
"shortdesc": "Length.z",
"step": 0.01,
"type": "float"
}
2020-10-09 22:36:25 +02:00
],
"shortdesc": "Elongation"
},
"type": "shader"
}