TerrainOptions constructor

TerrainOptions({
  1. Function? after,
  2. Easing easing = Easing.linear,
  3. dynamic heightmap,
  4. Material? material,
  5. double? maxHeight,
  6. double? minHeight,
  7. TerrainType optimization = TerrainType.none,
  8. double frequency = 2.5,
  9. int steps = 1,
  10. bool stretch = true,
  11. bool turbulent = false,
  12. int xSegments = 63,
  13. double xSize = 1024,
  14. int ySegments = 63,
  15. double ySize = 1024,
  16. List<Vector2> worleyDistribution(
    1. int,
    2. int, [
    3. int?
    ])?,
  17. double worleyDistanceTransformation(
    1. num
    )?,
  18. DistanceToType distanceType = DistanceToType.squared,
  19. 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 ?? [];
}