mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
configurable heightmap resolution
This commit is contained in:
parent
93fc16aede
commit
8143b6188a
12
NewHorizons/External/Modules/HeightMapModule.cs
vendored
12
NewHorizons/External/Modules/HeightMapModule.cs
vendored
@ -1,6 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using NewHorizons.Utility;
|
||||
using NewHorizons.Utility;
|
||||
using Newtonsoft.Json;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace NewHorizons.External.Modules
|
||||
{
|
||||
@ -31,5 +32,12 @@ namespace NewHorizons.External.Modules
|
||||
/// Relative filepath to the texture used for the terrain.
|
||||
/// </summary>
|
||||
public string textureMap;
|
||||
|
||||
/// <summary>
|
||||
/// Resolution of the heightmap.
|
||||
/// Higher values means more detail but also more memory/cpu/gpu usage.
|
||||
/// </summary>
|
||||
[Range(0, int.MaxValue)] [DefaultValue(51)]
|
||||
public int resolution = 51;
|
||||
}
|
||||
}
|
||||
@ -466,7 +466,7 @@ namespace NewHorizons.Handlers
|
||||
|
||||
if (body.Config.HeightMap != null)
|
||||
{
|
||||
HeightMapBuilder.Make(go, sector, body.Config.HeightMap, body.Mod, 51);
|
||||
HeightMapBuilder.Make(go, sector, body.Config.HeightMap, body.Mod, body.Config.HeightMap.resolution);
|
||||
}
|
||||
|
||||
if (body.Config.ProcGen != null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user