Convert height map to normal map.
More...
#include <ProceduralTextureModifiers.h>
Convert height map to normal map.
Use Sobel algorithm to calculate a normal map out of the given image.
Example:
- Tip
- Create a copy of your working TextureBuffer for normal mapping before you colour it:
◆ Normals()
Default constructor.
- Parameters
-
pBuffer | Image buffer where to modify the image. |
◆ getName()
Get name of the filter as string.
◆ logMsg()
void Procedural::TextureProcessing::logMsg |
( |
Ogre::String |
msg | ) |
|
|
protectedinherited |
◆ process()
◆ setAmplify()
Set amplify for normal calculation.
- Parameters
-
amplify | New amplify for calculation (default 64) |
◆ 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
TextureBufferPtr clone() const
Create a copy of the current texture image buffer.
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50