Contains a few useful noise functions. More...
#include <mitsuba/render/noise.h>
Static Public Member Functions | |
static Float | perlinNoise (const Point &p) |
Evaluate the Perlin noise function at p. More... | |
static Float | fbm (const Point &p, const Vector &dpdx, const Vector &dpdy, Float omega, int maxOctaves) |
Evaluate a fractional Brownian noise function based on perlinNoise() at p. More... | |
static Float | turbulence (const Point &p, const Vector &dpdx, const Vector &dpdy, Float omega, int maxOctaves) |
Similar to fbm, but adds first-derivative discontinuities, causing the resulting function to have infinite frequency content. More... | |
Contains a few useful noise functions.
The implementations in this class are based on PBRT
|
static |
Evaluate a fractional Brownian noise function based on perlinNoise() at p.
dpdx | Differential of p with respect to the next horizontal pixel in screen-space. |
dpdy | Differential of p with respect to the next vertical pixel in screen-space. |
omega | Controls the falloff weights applied to higher-frequency octaves |
maxOctaves | Max. number of octaves used in the noise computation |
Evaluate the Perlin noise function at p.
|
static |
Similar to fbm, but adds first-derivative discontinuities, causing the resulting function to have infinite frequency content.
dpdx | Differential of p with respect to the next horizontal pixel in screen-space. |
dpdy | Differential of p with respect to the next vertical pixel in screen-space. |
omega | Controls the falloff weights applied to higher-frequency octaves |
maxOctaves | Max. number of octaves used in the noise computation |