mirror of
https://github.com/Relintai/mat_maker_gd.git
synced 2025-04-30 10:57:56 +02:00
89 lines
1.4 KiB
Plaintext
89 lines
1.4 KiB
Plaintext
{
|
|
"name": "circular_gradient",
|
|
"node_position": {
|
|
"x": 0,
|
|
"y": 0
|
|
},
|
|
"parameters": {
|
|
"gradient": {
|
|
"interpolation": 1,
|
|
"points": [
|
|
{
|
|
"a": 1,
|
|
"b": 0,
|
|
"g": 0,
|
|
"pos": 0,
|
|
"r": 0
|
|
},
|
|
{
|
|
"a": 1,
|
|
"b": 1,
|
|
"g": 1,
|
|
"pos": 1,
|
|
"r": 1
|
|
}
|
|
],
|
|
"type": "Gradient"
|
|
},
|
|
"repeat": 1
|
|
},
|
|
"shader_model": {
|
|
"code": "",
|
|
"global": "",
|
|
"inputs": [
|
|
|
|
],
|
|
"instance": "",
|
|
"name": "Circular Gradient",
|
|
"outputs": [
|
|
{
|
|
"longdesc": "Number of repetitions of the gradient",
|
|
"rgba": "$gradient(fract($repeat*0.15915494309*atan($uv.y-0.5, $uv.x-0.5)))",
|
|
"shortdesc": "Repeat",
|
|
"type": "rgba"
|
|
}
|
|
],
|
|
"parameters": [
|
|
{
|
|
"control": "None",
|
|
"default": 1,
|
|
"label": "Repeat",
|
|
"longdesc": "Number of repetitions of the gradient",
|
|
"max": 32,
|
|
"min": 1,
|
|
"name": "repeat",
|
|
"shortdesc": "Repeat",
|
|
"step": 1,
|
|
"type": "float"
|
|
},
|
|
{
|
|
"default": {
|
|
"interpolation": 1,
|
|
"points": [
|
|
{
|
|
"a": 1,
|
|
"b": 0,
|
|
"g": 0,
|
|
"pos": 0,
|
|
"r": 0
|
|
},
|
|
{
|
|
"a": 1,
|
|
"b": 1,
|
|
"g": 1,
|
|
"pos": 1,
|
|
"r": 1
|
|
}
|
|
],
|
|
"type": "Gradient"
|
|
},
|
|
"label": "Gradient",
|
|
"longdesc": "Gradient to be spread on the image",
|
|
"name": "gradient",
|
|
"shortdesc": "Gradient",
|
|
"type": "gradient"
|
|
}
|
|
]
|
|
},
|
|
"type": "shader"
|
|
} |