Added 2D and 3D SDF morph operators

This commit is contained in:
RodZill4 2020-01-06 21:02:25 +01:00
parent 8fa12448eb
commit dcfbee7ffc
2 changed files with 113 additions and 0 deletions

View File

@ -0,0 +1,57 @@
{
"name": "sdf3d_morph",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"Amount": 0.5,
"amount": 0.5,
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"op": 0,
"r": 0.3,
"w": 0.28
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in1",
"type": "sdf3d"
},
{
"default": "0.0",
"label": "",
"name": "in2",
"type": "sdf3d"
}
],
"instance": "",
"name": "Morph",
"outputs": [
{
"sdf3d": "mix($in1($uv), $in2($uv), $amount)",
"type": "sdf3d"
}
],
"parameters": [
{
"control": "None",
"default": 0.5,
"label": "",
"max": 1,
"min": 0,
"name": "amount",
"step": 0.01,
"type": "float"
}
]
},
"type": "shader"
}

View File

@ -0,0 +1,56 @@
{
"name": "sdmorph",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"amount": 0.5,
"bevel": 0,
"cx": 0,
"cy": 0,
"h": 0.08,
"op": 0,
"r": 0.3,
"w": 0.28
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "0.0",
"label": "",
"name": "in1",
"type": "sdf2d"
},
{
"default": "0.0",
"label": "",
"name": "in2",
"type": "sdf2d"
}
],
"instance": "",
"name": "sdMorph",
"outputs": [
{
"sdf2d": "mix($in1($uv), $in2($uv), $amount)",
"type": "sdf2d"
}
],
"parameters": [
{
"control": "None",
"default": 0.5,
"label": "",
"max": 1,
"min": 0,
"name": "amount",
"step": 0.01,
"type": "float"
}
]
},
"type": "shader"
}