Linear interpolation.
More...
#include <ProceduralTextureModifiers.h>
Linear interpolation.
Mix first two inputs (a, b) in proportions given by base input (c). Each color channel is processed separately. Equation: x = bc + a(1 - c)
Example:
◆ Lerp()
Default constructor.
- Parameters
-
pBuffer | Image buffer where to modify the image. |
- Note
- This is the third image (c).
◆ getName()
Get name of the filter as string.
◆ logMsg()
void Procedural::TextureProcessing::logMsg |
( |
Ogre::String |
msg | ) |
|
|
protectedinherited |
◆ process()
◆ setImageA()
Set first image (a).
- Parameters
-
image1 | Pointer to a new first image (default NULL) |
◆ setImageB()
Set second image (b).
- Parameters
-
image2 | Pointer to a new second image (default NULL) |
◆ setLog()
void Procedural::TextureProcessing::setLog |
( |
bool |
enable = true | ) |
|
|
inherited |
Enable/Disable logging.
- Parameters
-
enable | true enables logging of filter actions |
◆ mBuffer
◆ mLog
bool Procedural::TextureProcessing::mLog |
|
protectedinherited |
◆ mName
The documentation for this class was generated from the following file:
- ProceduralTextureModifiers.h
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50