mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-11 18:26:08 +00:00
WIP fractal-gavoro-pseudoerosion
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.dfsek.terra.api.noise;
|
||||
|
||||
/**
|
||||
* A NoiseSampler which additionally provides directional derivatives
|
||||
*/
|
||||
public interface DerivativeNoiseSampler extends NoiseSampler {
|
||||
|
||||
static boolean providesDerivative(NoiseSampler sampler) {
|
||||
if (sampler instanceof DerivativeNoiseSampler dSampler) {
|
||||
return dSampler.isDerivable();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
default boolean isDerivable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
double[] noised(long seed, double x, double y);
|
||||
|
||||
double[] noised(long seed, double x, double y, double z);
|
||||
}
|
||||
Reference in New Issue
Block a user