mirror of
https://github.com/Relintai/material-maker.git
synced 2024-11-13 06:27:18 +01:00
e919507f06
- Added signed distance functions 2D and 2D input/output types - Updated SDF2D nodes to used SDF2D inputs/outputs - Added preview code for SDF2D and SDF3D - Updates all SDF2D templates - Added basic SDF3D nodes
47 lines
641 B
Plaintext
47 lines
641 B
Plaintext
{
|
|
"name": "sdshow",
|
|
"node_position": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"parameters": {
|
|
"bevel": 0.1,
|
|
"cx": 0,
|
|
"cy": 0,
|
|
"h": 0.08,
|
|
"r": 0.3,
|
|
"w": 0.28
|
|
},
|
|
"shader_model": {
|
|
"code": "",
|
|
"global": "",
|
|
"inputs": [
|
|
{
|
|
"default": "0.0",
|
|
"label": "",
|
|
"name": "in",
|
|
"type": "sdf2d"
|
|
}
|
|
],
|
|
"instance": "",
|
|
"name": "sdShow",
|
|
"outputs": [
|
|
{
|
|
"f": "clamp(-$in($uv)/max($bevel, 0.00001), 0.0, 1.0)",
|
|
"type": "f"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"default": 0,
|
|
"label": "Bevel",
|
|
"max": 1,
|
|
"min": 0,
|
|
"name": "bevel",
|
|
"step": 0.01,
|
|
"type": "float"
|
|
}
|
|
]
|
|
},
|
|
"type": "shader"
|
|
} |