Skip to content

larspensjo/Go-simplex-noise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Simplexnoise

As copied from the original C implementation by Stefan Gustavson:

This package implements "Simplex Noise" as presented by Ken Perlin at a relatively obscure and not often cited course session "Real-Time Shading" at Siggraph 2001 (before real time shading actually took on), under the title "hardware noise". The 3D function is numerically equivalent to his Java reference code available in the PDF course notes, although I re-implemented it from scratch to get more readable code. The 1D, 2D and 4D cases were implemented from scratch by me from Ken Perlin's text.

See also Wikipedia: Simplex noise

Installation

go get github.com/larspensjo/Go-simplex-noise/simplexnoise

Usage instructions

import "github.com/larspensjo/Go-simplex-noise/simplexnoise"

1D simplex noise
func Noise1(x float64) float64

2D simplex noise
func Noise2(x, y float64) float64

3D simplex noise
func Noise3(x, y, z float64) float64

Copyright and licensing

The source code is in the public domain. See top of simplexnoise.go.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages