Skip to content

Commit f2d3712

Browse files
committed
Added SwapChannels node and documentation.
1 parent 5494950 commit f2d3712

File tree

6 files changed

+39
-1
lines changed

6 files changed

+39
-1
lines changed
Loading

addons/material_maker/doc/node_filter_decompose.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Decompose node
22
~~~~~~~~~~~~~~
33

4-
The **Decompose** node decomposes anRGBA input into four greyscale outputs.
4+
The **Decompose** node decomposes an RGBA input into four greyscale outputs.
55

66
.. image:: images/node_decompose.png
77
:align: center
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
SwapChannels node
2+
~~~~~~~~~~~~~~~~~
3+
4+
The **SwapChannels** node can be used to replace each channel (R, G, B and A) of
5+
an with 0, 1 or a channel of its input (inverted or not).
6+
7+
.. image:: images/node_swapchannel.png
8+
:align: center
9+
10+
Inputs
11+
++++++
12+
13+
The **SwapChannels** node has a single RGBA input.
14+
15+
Outputs
16+
+++++++
17+
18+
The **SwapChannels** node outputs an RGBA image whose channels are defined by its parameters.
19+
20+
Parameters
21+
++++++++++
22+
23+
The **SwapChannels** node has a parameter for each channel that defines its value (0 or 1)
24+
or source (a channel of the input image, inverted or not).

addons/material_maker/doc/nodes_filter.rst

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The filter nodes accept one or several inputs and generate one or several images
1313
node_filter_colorize
1414
node_filter_combine
1515
node_filter_decompose
16+
node_filter_swapchannels
1617
node_filter_blend
1718
node_filter_blur
1819
node_filter_directional_blur

addons/material_maker/library/base.json

+13
Original file line numberDiff line numberDiff line change
@@ -2251,6 +2251,19 @@
22512251
"tree_item": "Filter/Decompose",
22522252
"type": "decompose"
22532253
},
2254+
{
2255+
"collapsed": true,
2256+
"icon": "filter_swapchannels",
2257+
"name": "swap_channels",
2258+
"parameters": {
2259+
"out_a": 8,
2260+
"out_b": 6,
2261+
"out_g": 4,
2262+
"out_r": 2
2263+
},
2264+
"tree_item": "Filter/SwapChannels",
2265+
"type": "swap_channels"
2266+
},
22542267
{
22552268
"collapsed": true,
22562269
"icon": "filter_normal_map",
Loading

0 commit comments

Comments
 (0)