private float CorrectForHeight(float value, int x, int y, HeightMap.BlockType type, float Height) { //type = GetHeightType(x, y); if (type == HeightMap.BlockType.Grass) { value -= 0.1f * Height;// GetValueInPos(x, y); } else if (type == HeightMap.BlockType.Forest) { value -= 0.2f * Height; } else if (type == HeightMap.BlockType.Rock) { value -= 0.3f * Height; } else if (type == HeightMap.BlockType.Snow) { value -= 0.4f * Height; } return(value); }
private float CorrectForHeight(float value, int x, int y, HeightMap.BlockType type, float Height) { //type = GetHeightType(x, y); if (type == HeightMap.BlockType.DeepWater) { value += 8f * Height;// GetValueInPos(x, y); } else if (type == HeightMap.BlockType.ShallowWater) { value += 3f * Height; } else if (type == HeightMap.BlockType.Sand) { value = 1f * Height; } else if (type == HeightMap.BlockType.Grass) { value += 0.25f * Height; } return(value); }