2019-12-15 16:21:15 +01:00
|
|
|
{
|
|
|
|
"name": "sdscale",
|
|
|
|
"node_position": {
|
|
|
|
"x": 0,
|
|
|
|
"y": 0
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"a": 0,
|
2019-12-27 22:30:49 +01:00
|
|
|
"s": 1,
|
2019-12-15 16:21:15 +01:00
|
|
|
"x": 0.35,
|
|
|
|
"y": 0,
|
|
|
|
"z": 0
|
|
|
|
},
|
|
|
|
"shader_model": {
|
|
|
|
"code": "",
|
|
|
|
"global": "",
|
|
|
|
"inputs": [
|
|
|
|
{
|
|
|
|
"default": "0.0",
|
|
|
|
"label": "",
|
|
|
|
"name": "in",
|
2019-12-25 12:35:00 +01:00
|
|
|
"type": "sdf2d"
|
2019-12-15 16:21:15 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"instance": "",
|
|
|
|
"name": "Scale",
|
|
|
|
"outputs": [
|
|
|
|
{
|
2019-12-25 12:35:00 +01:00
|
|
|
"sdf2d": "$in(($uv-vec2(0.5))/$s+vec2(0.5))*$s",
|
|
|
|
"type": "sdf2d"
|
2019-12-15 16:21:15 +01:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"parameters": [
|
|
|
|
{
|
2019-12-27 22:30:49 +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"
|
|
|
|
}
|