mirror of
https://github.com/Relintai/mat_maker_gd.git
synced 2025-05-04 03:07:55 +02:00
40 lines
920 B
Plaintext
40 lines
920 B
Plaintext
{
|
|
"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",
|
|
"name": "in",
|
|
"shortdesc": "Input",
|
|
"type": "rgba"
|
|
}
|
|
],
|
|
"instance": "",
|
|
"longdesc": "A fill companion node that generated an UV map that follows each filled area",
|
|
"name": "Fill to UV ",
|
|
"outputs": [
|
|
{
|
|
"longdesc": "The generated output UV map, to be connected to a Custom UV node",
|
|
"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",
|
|
"type": "rgb"
|
|
}
|
|
],
|
|
"parameters": [
|
|
|
|
],
|
|
"shortdesc": "Fill to UV"
|
|
},
|
|
"type": "shader"
|
|
} |