mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
simplex noise
This commit is contained in:
17
Sources/Voxelotl/Random/CoherentNoise.swift
Normal file
17
Sources/Voxelotl/Random/CoherentNoise.swift
Normal 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
|
||||
}
|
Reference in New Issue
Block a user