This commit is contained in:
JohnCorby 2022-07-14 11:08:24 -07:00
parent f4ee3d9b49
commit d17f183bac
2 changed files with 6 additions and 4 deletions

View File

@ -38,8 +38,8 @@ namespace NewHorizons.External.Modules
/// Higher values means more detail but also more memory/cpu/gpu usage.
/// This value will be 1:1 with the heightmap texture width, but only at the equator.
/// </summary>
[Range(50, 2000)]
[DefaultValue(200)]
public int resolution = 200;
[Range(1 * 4, 500 * 4)]
[DefaultValue(50 * 4)]
public int resolution = 50 * 4;
}
}

View File

@ -466,7 +466,9 @@ namespace NewHorizons.Handlers
if (body.Config.HeightMap != null)
{
var res = (int)(body.Config.HeightMap.resolution / 4);
// resolution = tris per face
// divide by 4 to account for all the way around the equator
var res = body.Config.HeightMap.resolution / 4;
HeightMapBuilder.Make(go, sector, body.Config.HeightMap, body.Mod, res);
}