mirror of
https://github.com/Relintai/material-maker.git
synced 2024-12-23 21:16:54 +01:00
Added SwapChannels node and documentation.
This commit is contained in:
parent
5494950ee3
commit
f2d3712743
BIN
addons/material_maker/doc/images/node_swapchannel.png
Normal file
BIN
addons/material_maker/doc/images/node_swapchannel.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
24
addons/material_maker/doc/node_filter_swapchannels.rst
Normal file
24
addons/material_maker/doc/node_filter_swapchannels.rst
Normal file
@ -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).
|
@ -13,6 +13,7 @@ The filter nodes accept one or several inputs and generate one or several images
|
|||||||
node_filter_colorize
|
node_filter_colorize
|
||||||
node_filter_combine
|
node_filter_combine
|
||||||
node_filter_decompose
|
node_filter_decompose
|
||||||
|
node_filter_swapchannels
|
||||||
node_filter_blend
|
node_filter_blend
|
||||||
node_filter_blur
|
node_filter_blur
|
||||||
node_filter_directional_blur
|
node_filter_directional_blur
|
||||||
|
@ -2251,6 +2251,19 @@
|
|||||||
"tree_item": "Filter/Decompose",
|
"tree_item": "Filter/Decompose",
|
||||||
"type": "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,
|
"collapsed": true,
|
||||||
"icon": "filter_normal_map",
|
"icon": "filter_normal_map",
|
||||||
|
BIN
addons/material_maker/library/base/filter_swapchannels.png
Normal file
BIN
addons/material_maker/library/base/filter_swapchannels.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 228 B |
Loading…
Reference in New Issue
Block a user