mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-02-16 10:30:42 +00:00
add palette resolution config options
This commit is contained in:
@@ -5,6 +5,7 @@ import com.dfsek.tectonic.api.config.template.annotations.Default;
|
||||
import com.dfsek.tectonic.api.config.template.annotations.Value;
|
||||
|
||||
import com.dfsek.terra.api.config.meta.Meta;
|
||||
import com.dfsek.terra.api.noise.NoiseSampler;
|
||||
|
||||
|
||||
public class NoiseChunkGeneratorPackConfigTemplate implements ConfigTemplate {
|
||||
@@ -12,6 +13,18 @@ public class NoiseChunkGeneratorPackConfigTemplate implements ConfigTemplate {
|
||||
@Default
|
||||
private @Meta int elevationBlend = 4;
|
||||
|
||||
@Value("blend.palette.resolution")
|
||||
@Default
|
||||
private @Meta int paletteRes = 4;
|
||||
|
||||
@Value("blend.palette.sampler")
|
||||
@Default
|
||||
private @Meta NoiseSampler paletteBlendSampler = NoiseSampler.zero();
|
||||
|
||||
@Value("blend.palette.amplitude")
|
||||
@Default
|
||||
private @Meta double paletteBlendAmplitude = 0;
|
||||
|
||||
@Value("carving.resolution.horizontal")
|
||||
@Default
|
||||
private @Meta int horizontalRes = 4;
|
||||
@@ -31,4 +44,16 @@ public class NoiseChunkGeneratorPackConfigTemplate implements ConfigTemplate {
|
||||
public int getVerticalRes() {
|
||||
return verticalRes;
|
||||
}
|
||||
|
||||
public double getPaletteBlendAmplitude() {
|
||||
return paletteBlendAmplitude;
|
||||
}
|
||||
|
||||
public int getPaletteRes() {
|
||||
return paletteRes;
|
||||
}
|
||||
|
||||
public NoiseSampler getPaletteBlendSampler() {
|
||||
return paletteBlendSampler;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user