2019-12-15 16:21:15 +01:00
|
|
|
{
|
|
|
|
"name": "sdf3d_scale",
|
|
|
|
"node_position": {
|
|
|
|
"x": 0,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"a": 0,
|
|
|
|
"s": 1,
|
|
|
|
"x": 0.35,
|
|
|
|
"y": 0,
|
|
|
|
"z": 0
|
|
|
|
},
|
|
|
|
"shader_model": {
|
2020-02-06 21:51:14 +01:00
|
|
|
"code": "vec2 $(name_uv)_in = $in(($uv)/$s);",
|
2019-12-24 15:42:09 +01:00
|
|
|
"global": "",
|
2019-12-15 16:21:15 +01:00
|
|
|
"inputs": [
|
|
|
|
{
|
2020-02-06 21:51:14 +01:00
|
|
|
"default": "vec2(0.0)",
|
2019-12-15 16:21:15 +01:00
|
|
|
"label": "",
|
|
|
|
"name": "in",
|
2020-02-06 21:51:14 +01:00
|
|
|
"type": "sdf3dc"
|
2019-12-15 16:21:15 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"instance": "",
|
|
|
|
"name": "Scale",
|
|
|
|
"outputs": [
|
|
|
|
{
|
2020-02-06 21:51:14 +01:00
|
|
|
"sdf3dc": "vec2($(name_uv)_in.x*$s, $(name_uv)_in.y)",
|
|
|
|
"type": "sdf3dc"
|
2019-12-15 16:21:15 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": [
|
|
|
|
{
|
2019-12-29 18:12:35 +01:00
|
|
|
"control": "Scale1.x",
|
2019-12-15 16:21:15 +01:00
|
|
|
"default": 1,
|
|
|
|
"label": "",
|
|
|
|
"max": 5,
|
|
|
|
"min": 0,
|
|
|
|
"name": "s",
|
|
|
|
"step": 0.01,
|
|
|
|
"type": "float"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"type": "shader"
|
|
|
|
}
|