mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
More 3D SDF nodes
This commit is contained in:
parent
78891affae
commit
4b968cc63e
File diff suppressed because it is too large
Load Diff
41
addons/material_maker/nodes/sdf3d_cone.mmg
Normal file
41
addons/material_maker/nodes/sdf3d_cone.mmg
Normal file
@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "sdf3d_cone",
|
||||
"node_position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"parameters": {
|
||||
"a": 30,
|
||||
"r": 0,
|
||||
"sx": 0.01,
|
||||
"sy": 0.01,
|
||||
"sz": 0.015
|
||||
},
|
||||
"shader_model": {
|
||||
"code": "",
|
||||
"global": "",
|
||||
"inputs": [
|
||||
|
||||
],
|
||||
"instance": "",
|
||||
"name": "Cone",
|
||||
"outputs": [
|
||||
{
|
||||
"sdf3d": "dot(vec2(cos($a*0.01745329251),sin($a*0.01745329251)),vec2(length($uv.xz),$uv.y))",
|
||||
"type": "sdf3d"
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"default": 30,
|
||||
"label": "Angle",
|
||||
"max": 90,
|
||||
"min": 0,
|
||||
"name": "a",
|
||||
"step": 1,
|
||||
"type": "float"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": "shader"
|
||||
}
|
49
addons/material_maker/nodes/sdf3d_rounded.mmg
Normal file
49
addons/material_maker/nodes/sdf3d_rounded.mmg
Normal file
@ -0,0 +1,49 @@
|
||||
{
|
||||
"name": "sdf3d_rounded",
|
||||
"node_position": {
|
||||
"x": 0,
|
||||
"y": 0
|
||||
},
|
||||
"parameters": {
|
||||
"bevel": 0,
|
||||
"cx": 0,
|
||||
"cy": 0,
|
||||
"h": 0.08,
|
||||
"k": 0.15,
|
||||
"op": 0,
|
||||
"r": 0.05,
|
||||
"w": 0.28
|
||||
},
|
||||
"shader_model": {
|
||||
"code": "",
|
||||
"global": "",
|
||||
"inputs": [
|
||||
{
|
||||
"default": "0.0",
|
||||
"label": "",
|
||||
"name": "in",
|
||||
"type": "sdf3d"
|
||||
}
|
||||
],
|
||||
"instance": "",
|
||||
"name": "Rounded",
|
||||
"outputs": [
|
||||
{
|
||||
"sdf3d": "$in($uv)-$r",
|
||||
"type": "sdf3d"
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"default": 0,
|
||||
"label": "",
|
||||
"max": 1,
|
||||
"min": 0,
|
||||
"name": "r",
|
||||
"step": 0.01,
|
||||
"type": "float"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": "shader"
|
||||
}
|
@ -9,7 +9,7 @@
|
||||
"cx": 0,
|
||||
"cy": 0,
|
||||
"h": 0.08,
|
||||
"k": 0.04,
|
||||
"k": 0.1,
|
||||
"op": 0,
|
||||
"r": 0.3,
|
||||
"w": 0.28
|
||||
|
Loading…
Reference in New Issue
Block a user