|
Swaprgb is very similar to Swapcrf in that it lets you shuffle colour components around. You can copy the current blue colour value into the red colour value, or green into blue, or whatever. This is almost useless.
What makes this texture a bit more useful is that you can perform a few operations to the colours instead of a simple mixing. You can also add a number to the individual colour values.
One useful example would be to make the current red value be -100% the current red value plus 0% of the current green value plus 0% of the blue value plus 255. This just means make the new red value by subtracting the current value from 255. 20 will become 235 and vice versa: it is an inversion! Bright areas will now be dark, and dark values will be bright.
You can also brighten colours by setting the colour percent to a value like 1.1. If the new red value is 110% of the current red colour, youll have the same hue, but brighter.
You can also change image contrast by simultaneously adding an offset colour. If you set the new red value to be 50% of the current red value plus 64, the new reds (which used to range from 0 to 255) will all vary from the range 64 to 192: there will be less contrast in the image.
|