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

40 lines
920 B
Plaintext
Raw Normal View History

2020-04-24 23:06:15 +02:00
{
"name": "fill_to_uv",
"node_position": {
"x": 0,
"y": 0
},
"parameters": {
},
"shader_model": {
"code": "vec4 $(name_uv)_bb = $in($uv);",
"global": "",
"inputs": [
{
"default": "vec4(0.0)",
"label": "",
"longdesc": "The input fill data, to be connected to the output of a Fill node",
2020-04-24 23:06:15 +02:00
"name": "in",
"shortdesc": "Input",
2020-04-24 23:06:15 +02:00
"type": "rgba"
}
],
"instance": "",
"longdesc": "A fill companion node that generated an UV map that follows each filled area",
"name": "Fill to UV ",
2020-04-24 23:06:15 +02:00
"outputs": [
{
"longdesc": "The generated output UV map, to be connected to a Custom UV node",
2020-04-24 23:06:15 +02:00
"rgb": "vec3((fract($uv-$(name_uv)_bb.xy)/$(name_uv)_bb.zw), rand(vec2(float($seed), rand(vec2(rand($(name_uv)_bb.xy), rand($(name_uv)_bb.zw))))))",
"shortdesc": "Output",
2020-04-24 23:06:15 +02:00
"type": "rgb"
}
],
"parameters": [
],
"shortdesc": "Fill to UV"
2020-04-24 23:06:15 +02:00
},
"type": "shader"
}