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