Procedural-Terrain-Generator
Procedural-Terrain-Generator copied to clipboard
BiomeSampler.GetGaussianBlurrableBiomeMap(TerraConfig, GridPosition, int, int)': not all code paths return a value
Hello, the latest commit has some missing code:
Assets\Terra\Source\Terrain\BiomeSampler.cs(173,17): error CS0161: 'BiomeSampler.GetGaussianBlurrableBiomeMap(TerraConfig, GridPosition, int, int)': not all code paths return a value
public int[,] GetGaussianBlurrableBiomeMap(TerraConfig config, GridPosition position, int resolution, int deviation) {
int[,] biomeMap = GetBiomeMap(config, position, resolution);
int kernelSize = BlurUtils.GetGaussianKernelSize(deviation);
int newRes = resolution + kernelSize;
int[,] blurrableBiomeMap = new int[newRes,newRes];
// Fill in area surrounding the center biome map
}