Krita Source Code Documentation
Loading...
Searching...
No Matches
CFTangentNormalmap< channels_type > Struct Template Reference

#include <KoCompositeOpFunctions.h>

+ Inheritance diagram for CFTangentNormalmap< 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)
 

Detailed Description

template<typename channels_type>
struct CFTangentNormalmap< channels_type >

Definition at line 288 of file KoCompositeOpFunctions.h.

Member Function Documentation

◆ composeChannels()

template<typename channels_type >
static void CFTangentNormalmap< channels_type >::composeChannels ( float srcR,
float srcG,
float srcB,
float & dstR,
float & dstG,
float & dstB )
inlinestatic

Definition at line 290 of file KoCompositeOpFunctions.h.

290 {
291 using namespace Arithmetic;
292 const float half = halfValue<float>();
293 dstR = srcR + (dstR - half);
294 dstG = srcG + (dstG - half);
295 dstB = srcB + (dstB - unitValue<float>());
296 possiblyClampValuesToSDR<channels_type>(dstR, dstG, dstB);
297 }

The documentation for this struct was generated from the following file: