simplex noise

This commit is contained in:
2024-08-29 03:56:54 +10:00
parent f95be3f5f4
commit c5dd2caf48
5 changed files with 260 additions and 10 deletions

View File

@ -0,0 +1,17 @@
public protocol CoherentNoise2D {
associatedtype Scalar: FloatingPoint & SIMDScalar
func get(_ point: SIMD2<Scalar>) -> Scalar
}
public protocol CoherentNoise3D {
associatedtype Scalar: FloatingPoint & SIMDScalar
func get(_ point: SIMD3<Scalar>) -> Scalar
}
public protocol CoherentNoise4D {
associatedtype Scalar: FloatingPoint & SIMDScalar
func get(_ point: SIMD4<Scalar>) -> Scalar
}