Fills full image with noise in a given colour.
More...
#include <ProceduralTextureGenerator.h>
Fills full image with noise in a given colour.
High quality noise with various noise algorithms.
Examples: White noise (default)
Perlin noise
◆ NOISE_TYPE
Noise generator type.
Enumerator |
---|
NOISE_WHITE | White noise.
|
NOISE_PERLIN | Perlin noise.
|
◆ Noise()
Default constructor.
- Parameters
-
pBuffer | Image buffer where to store the generated image. |
◆ getName()
Get name of the filter as string.
◆ logMsg()
void Procedural::TextureProcessing::logMsg |
( |
Ogre::String |
msg | ) |
|
|
protectedinherited |
◆ process()
◆ setColour() [1/2]
Set the colour of the noise.
- Parameters
-
◆ setColour() [2/2]
Set the colour of the noise.
- Parameters
-
red | Red value of the noise colour [0.0, 1.0] (default 1.0) |
green | Green value of the noise colour [0.0, 1.0] (default 1.0) |
blue | Blue value of the noise colour [0.0, 1.0] (default 1.0) |
alpha | Alpha value of the noise colour [0.0, 1.0] (default 1.0) |
◆ setLog()
void Procedural::TextureProcessing::setLog |
( |
bool |
enable = true | ) |
|
|
inherited |
Enable/Disable logging.
- Parameters
-
enable | true enables logging of filter actions |
◆ setSeed()
Set the seed for "random" number generator.
- Parameters
-
seed | Seed value where to set the random number generator (default 5120) |
◆ setType()
Set the type of noise generation.
- Parameters
-
type | Type of noise generator (default NOISE_WHITE) |
◆ mBuffer
◆ mLog
bool Procedural::TextureProcessing::mLog |
|
protectedinherited |
◆ mName
The documentation for this class was generated from the following file:
- ProceduralTextureGenerator.h
class to store image data while processing
Definition: ProceduralTextureBuffer.h:50