tower world gen

This commit is contained in:
2024-09-04 01:38:27 +10:00
parent f77b64cc85
commit 080522e01b
9 changed files with 168 additions and 49 deletions

View File

@ -1,17 +1,21 @@
public protocol CoherentNoise2D {
public protocol CoherentNoise {
associatedtype Scalar: FloatingPoint & SIMDScalar
init()
}
public protocol CoherentNoiseRandomInit: CoherentNoise {
init<Random: RandomProvider>(random: inout Random)
}
public protocol CoherentNoise2D: CoherentNoise {
func get(_ point: SIMD2<Scalar>) -> Scalar
}
public protocol CoherentNoise3D {
associatedtype Scalar: FloatingPoint & SIMDScalar
public protocol CoherentNoise3D: CoherentNoise {
func get(_ point: SIMD3<Scalar>) -> Scalar
}
public protocol CoherentNoise4D {
associatedtype Scalar: FloatingPoint & SIMDScalar
public protocol CoherentNoise4D: CoherentNoise {
func get(_ point: SIMD4<Scalar>) -> Scalar
}