mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-11-14 22:43:53 +01:00
29 lines
858 B
Plaintext
29 lines
858 B
Plaintext
function Node_Bend(_x, _y, _group = noone) : Node_Processor(_x, _y, _group) constructor {
|
|
name = "Bend";
|
|
|
|
inputs[| 0] = nodeValue("Surface in", self, JUNCTION_CONNECT.input, VALUE_TYPE.surface, 0);
|
|
|
|
inputs[| 1] = nodeValue("Active", self, JUNCTION_CONNECT.input, VALUE_TYPE.boolean, true);
|
|
active_index = 1;
|
|
|
|
inputs[| 2] = nodeValue("Type", self, JUNCTION_CONNECT.input, VALUE_TYPE.integer, 0)
|
|
.setDisplay(VALUE_DISPLAY.enum_scroll, [ "Arc" ]);
|
|
|
|
outputs[| 0] = nodeValue("Surface out", self, JUNCTION_CONNECT.output, VALUE_TYPE.surface, noone);
|
|
|
|
input_display_list = [ 1,
|
|
["Surfaces", false], 0,
|
|
["Bend", false], 2,
|
|
]
|
|
|
|
attribute_surface_depth();
|
|
attribute_interpolation();
|
|
|
|
static processData = function(_outSurf, _data, _output_index, _array_index) { #region
|
|
var _typ = _data[2];
|
|
|
|
|
|
|
|
return _outSurf;
|
|
} #endregion
|
|
} |