Skip to content

Commit

Permalink
Added SwapChannels node and documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
RodZill4 committed Jan 21, 2020
1 parent 5494950 commit f2d3712
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion addons/material_maker/doc/node_filter_decompose.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Decompose node
~~~~~~~~~~~~~~

The **Decompose** node decomposes anRGBA input into four greyscale outputs.
The **Decompose** node decomposes an RGBA input into four greyscale outputs.

.. image:: images/node_decompose.png
:align: center
Expand Down
24 changes: 24 additions & 0 deletions addons/material_maker/doc/node_filter_swapchannels.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
SwapChannels node
~~~~~~~~~~~~~~~~~

The **SwapChannels** node can be used to replace each channel (R, G, B and A) of
an with 0, 1 or a channel of its input (inverted or not).

.. image:: images/node_swapchannel.png
:align: center

Inputs
++++++

The **SwapChannels** node has a single RGBA input.

Outputs
+++++++

The **SwapChannels** node outputs an RGBA image whose channels are defined by its parameters.

Parameters
++++++++++

The **SwapChannels** node has a parameter for each channel that defines its value (0 or 1)
or source (a channel of the input image, inverted or not).
1 change: 1 addition & 0 deletions addons/material_maker/doc/nodes_filter.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The filter nodes accept one or several inputs and generate one or several images
node_filter_colorize
node_filter_combine
node_filter_decompose
node_filter_swapchannels
node_filter_blend
node_filter_blur
node_filter_directional_blur
Expand Down
13 changes: 13 additions & 0 deletions addons/material_maker/library/base.json
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,19 @@
"tree_item": "Filter/Decompose",
"type": "decompose"
},
{
"collapsed": true,
"icon": "filter_swapchannels",
"name": "swap_channels",
"parameters": {
"out_a": 8,
"out_b": 6,
"out_g": 4,
"out_r": 2
},
"tree_item": "Filter/SwapChannels",
"type": "swap_channels"
},
{
"collapsed": true,
"icon": "filter_normal_map",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f2d3712

Please sign in to comment.