|
Krita Source Code Documentation
|
#include <KoCompositeOpFunctions.h>
Inheritance diagram for CFReorientedNormalMapCombine< channels_type >:Static Public Member Functions | |
| static void | composeChannels (float srcR, float srcG, float srcB, float &dstR, float &dstG, float &dstB) |
Static Public Member Functions inherited from KoClampedSourceAndDestinationCompositeOpGenericFunctorBase< channels_type > | |
| static channels_type | clampDestinationChannelValue (channels_type value) |
| static channels_type | clampSourceChannelValue (channels_type value) |
Definition at line 54 of file KoCompositeOpFunctions.h.
|
inlinestatic |
If the source vector has zero height, then we should just skip all the changes (with seems to be the behavior of the formula around the null point)
If the destination vector has zero height, then we should skip its modification (since we cannot rotate it in any way
If the resulting length of the vector is zero, then just keep the destination unchanged. Usually it means that the destination vector is null (i.e. dstR == dstG == dstB == 0.5)
Definition at line 56 of file KoCompositeOpFunctions.h.