Function cgl_rs::noise::perlin

source ·
pub fn perlin(
    x: NoiseDataType,
    y: NoiseDataType,
    z: NoiseDataType
) -> NoiseDataType
Expand description

Gets the perlin noise value at the given coordinates.

Example

cgl_rs::noise::init();
let noise = cgl_rs::noise::perlin(0.0, 0.0, 0.0);
cgl_rs::noise::shutdown();