Skip to content

Instantly share code, notes, and snippets.

@davidsvy
davidsvy / perlin3d.py
Created July 23, 2022 05:49
Numba implementation of 3d perlin noise.
import numba
import numpy as np
@numba.njit(parallel=True, fastmath=True)
def interpolant(t):
return t ** 3 * (t * (t * 6 - 15) + 10)
@numba.njit(parallel=True, fastmath=True)