mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 21:21:34 +00:00
fix significant oversights in noise & random
This commit is contained in:
@ -1,13 +1,15 @@
|
||||
public protocol CoherentNoise {
|
||||
associatedtype Scalar: FloatingPoint & SIMDScalar
|
||||
|
||||
init()
|
||||
}
|
||||
|
||||
public protocol CoherentNoiseRandomInit: CoherentNoise {
|
||||
init<Random: RandomProvider>(random: inout Random)
|
||||
}
|
||||
|
||||
public protocol CoherentNoiseTableInit: CoherentNoise {
|
||||
init(permutation: [Int16])
|
||||
}
|
||||
|
||||
public protocol CoherentNoise2D: CoherentNoise {
|
||||
func get(_ point: SIMD2<Scalar>) -> Scalar
|
||||
}
|
||||
|
Reference in New Issue
Block a user