material-maker/addons/material_maker/nodes/brightness_contrast.mmg

64 lines
1.3 KiB
Plaintext
Raw Normal View History

{
"name": "brightness_contrast",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
"brightness": 0,
2020-09-26 17:13:09 +02:00
"contrast": 1
},
"shader_model": {
"code": "",
"global": "",
"inputs": [
{
"default": "0.0",
"label": "",
2020-09-26 17:13:09 +02:00
"longdesc": "The input image",
"name": "in",
2020-09-26 17:13:09 +02:00
"shortdesc": "Input",
"type": "rgba"
}
],
"instance": "",
2020-09-26 17:13:09 +02:00
"longdesc": "A node that adjusts the Brightness and Contrast of its input",
"name": "Brightness/Contrast",
"outputs": [
{
2020-09-26 17:13:09 +02:00
"longdesc": "Shows the image with modified Brightness and Contrast",
"rgba": "vec4(clamp($in($uv).rgb*$contrast+vec3($brightness)+0.5-$contrast*0.5, vec3(0.0), vec3(1.0)), $in($uv).a)",
2020-09-26 17:13:09 +02:00
"shortdesc": "Output",
"type": "rgba"
}
],
"parameters": [
{
2020-09-26 17:13:09 +02:00
"control": "None",
"default": 0,
"label": "Brightness",
2020-09-26 17:13:09 +02:00
"longdesc": "The Brightness adjustment",
"max": 1,
"min": -1,
"name": "brightness",
2020-09-26 17:13:09 +02:00
"shortdesc": "Brightness",
"step": 0.01,
"type": "float"
},
{
2020-09-26 17:13:09 +02:00
"control": "None",
"default": 1,
"label": "Contrast",
2020-09-26 17:13:09 +02:00
"longdesc": "The Contrast adjustment",
"max": 2,
"min": 0,
"name": "contrast",
2020-09-26 17:13:09 +02:00
"shortdesc": "Contrast",
"step": 0.01,
"type": "float"
}
2020-09-26 17:13:09 +02:00
],
"shortdesc": "Brightness/Contrast"
},
"type": "shader"
}