Noise Functions

Portability Note: Built-in noise functions are not reproducible from platform to platform. Verify their support and appearance on all platforms you care about.

Noise functions can be used to increase visual complexity. Values returned by the following noise functions give the appearance of randomness but are not random. Rather, they give the same result for the same input, allowing reproduction of the same variance from frame to frame.

The noise functions below are defined to have the following characteristics:

• The return value(s) are always in the range [–1.0, 1.0], and cover at least the range [–0.6, 0.6], with a Gaussian-like distribution.

• The return value(s) have an overall average of 0.0.

• They are repeatable, in that ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.