material-maker/addons/material_maker/nodes/sdf3d_sphere.mmg
2019-12-29 18:12:35 +01:00

38 lines
493 B
Plaintext

{
"name": "sdf3d_sphere",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"r": 0.4
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
],
"instance": "",
"name": "Sphere",
"outputs": [
{
"sdf3d": "length($uv)-$r",
"type": "sdf3d"
}
],
"parameters": [
{
"control": "Radius1.r",
"default": 0.5,
"label": "",
"max": 1,
"min": 0,
"name": "r",
"step": 0.01,
"type": "float"
}
]
},
"type": "shader"
}