TerrainOptions constructor
TerrainOptions({
- Function? after,
- Easing easing = Easing.linear,
- dynamic heightmap,
- Material? material,
- double? maxHeight,
- double? minHeight,
- TerrainType optimization = TerrainType.none,
- double frequency = 2.5,
- int steps = 1,
- bool stretch = true,
- bool turbulent = false,
- int xSegments = 63,
- double xSize = 1024,
- int ySegments = 63,
- double ySize = 1024,
- List<
Vector2> worleyDistribution(])?, - double worleyDistanceTransformation()?,
- DistanceToType distanceType = DistanceToType.squared,
- int? worleyPoints,
Implementation
TerrainOptions({
this.after,
this.easing = Easing.linear,
this.heightmap,// = Terrain.DiamondSquare,
this.material,
this.maxHeight,
this.minHeight,
this.optimization = TerrainType.none,
this.frequency = 2.5,
this.steps = 1,
this.stretch = true,
this.turbulent = false,
this.xSegments = 63,
this.xSize = 1024,
this.ySegments = 63,
this.ySize = 1024,
this.worleyDistribution,
this.worleyDistanceTransformation,
this.distanceType = DistanceToType.squared,
this.worleyPoints
//List<Vector2>? worleyPoints
}){
//this.worleyPoints = worleyPoints ?? [];
}