Next: 6.21.5 Other Noise Functions
Up: 6.21 Procedural Texture Generation
Previous: 6.21.3 High Resolution Filtering
  Contents
Now that we can create a single frequency noise function using the framebuffer,
we need to create the different octaves and to composite them into one texture.
For each octave:
- Scale the texture matrix by a power of 2 in both and .
- Translate the texture matrix by a random offset in both and .
- Set the texture wrap mode to GL_ REPEAT for and .
- Draw a textured rectangle.
- Accumulate the color buffer contents.
The random translation is an attempt to minimize the amount of overlap between
each octave's texels; without it, every octave would use texels from the
same corner of the input image.
The accumulation is typically done with a scale factor that
controls the weight we want to give each octave.
2001-01-10