mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
le epic
This commit is contained in:
parent
f4ee3d9b49
commit
d17f183bac
@ -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;
|
||||
}
|
||||
}
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user