2D Amortized Noise Performance Evaluator
A Program to Evaluate the Performance of Amortized Noise
 All Classes Files Functions Variables Macros Pages
Functions
infinitesmoothperlin.cpp File Reference

Code file for 2D infinite smooth Perlin noise functions. More...

#include <stdlib.h>
#include <stdio.h>
#include <math.h>
#include "Common.h"

Functions

float infinitesmoothnoise2 (float vec[2])
 
float InfiniteSmoothPerlinNoise2D (float x, float y, float alpha, float beta, int n)
 Generate a cell of 2D infinite smooth Perlin noise.
 

Detailed Description

Infinite Smooth Perlin noise uses MurmurHash3 to get the gradients at integer points and smooths using quintic splines instead of cubic splines.

Function Documentation

float infinitesmoothnoise2 ( float  vec[2])

Compute a single octave of infinite smooth 2D noise at a single point.

Parameters
vecPoint at which to evaluate noise.
Returns
Noise value between -1.0 and 1.0.
float InfiniteSmoothPerlinNoise2D ( float  x,
float  y,
float  alpha,
float  beta,
int  n 
)

Compute turbulence, also known as 1/f noise.

Parameters
xX coordinate.
yY coordinate.
alphaPersistence.
betaLacunarity.
nSide of square grid.
Returns
Scale factor required to bring it down to range [-1, 1].