mirror of
https://github.com/Relintai/mat_maker_gd.git
synced 2025-04-30 10:57:56 +02:00
44 lines
718 B
Plaintext
44 lines
718 B
Plaintext
{
|
|
"name": "sdf3d_sphere",
|
|
"node_position": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"parameters": {
|
|
"r": 0.4
|
|
},
|
|
"shader_model": {
|
|
"code": "",
|
|
"global": "",
|
|
"inputs": [
|
|
|
|
],
|
|
"instance": "",
|
|
"longdesc": "Generates a sphere as a signed distance function",
|
|
"name": "Sphere",
|
|
"outputs": [
|
|
{
|
|
"longdesc": "Shows the sphere",
|
|
"sdf3d": "length($uv)-$r",
|
|
"shortdesc": "Output",
|
|
"type": "sdf3d"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"control": "Radius1.r",
|
|
"default": 0.5,
|
|
"label": "",
|
|
"longdesc": "The radius of the sphere",
|
|
"max": 1,
|
|
"min": 0,
|
|
"name": "r",
|
|
"shortdesc": "Radius",
|
|
"step": 0.01,
|
|
"type": "float"
|
|
}
|
|
],
|
|
"shortdesc": "Sphere"
|
|
},
|
|
"type": "shader"
|
|
} |