mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-18 10:32:30 +00:00
Add default 'from' values for linear map template
This commit is contained in:
parent
4970bf5720
commit
179a304cd2
@ -1,5 +1,6 @@
|
||||
package com.dfsek.terra.addons.noise.config.templates.normalizer;
|
||||
|
||||
import com.dfsek.tectonic.api.config.template.annotations.Default;
|
||||
import com.dfsek.tectonic.api.config.template.annotations.Value;
|
||||
|
||||
import com.dfsek.terra.addons.noise.normalizer.LinearMapNormalizer;
|
||||
@ -9,10 +10,12 @@ import com.dfsek.terra.api.noise.NoiseSampler;
|
||||
public class LinearMapNormalizerTemplate extends NormalizerTemplate<LinearMapNormalizer> {
|
||||
|
||||
@Value("from.a")
|
||||
private double aFrom;
|
||||
@Default
|
||||
private double aFrom = -1;
|
||||
|
||||
@Value("from.b")
|
||||
private double bFrom;
|
||||
@Default
|
||||
private double bFrom = 1;
|
||||
|
||||
@Value("to.a")
|
||||
private double aTo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user