Draw a number of pixels at random positions.
More...
#include <ProceduralTextureModifiers.h>
Draw a number of pixels at random positions.
Paint a specific number of pixels at random positions in a given colour.
Example:
◆ RandomPixels()
◆ 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 pixel to paint.
- Parameters
-
◆ setColour() [2/2]
Set the colour of the pixel to paint.
- Parameters
-
red | Red value of the pixel colour [0.0, 1.0] (default 1.0) |
green | Green value of the pixel colour [0.0, 1.0] (default 1.0) |
blue | Blue value of the pixel colour [0.0, 1.0] (default 1.0) |
alpha | Alpha value of the pixel colour [0.0, 1.0] (default 1.0) |
◆ setCount()
Set the number of random painted pixels.
- Parameters
-
count | Number of pixels to paint (maximum: image height * image weight, default: (Sqrt(image width) + Sqrt(image height)) * 10) |
◆ 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) |
◆ 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