From e9aebd9924966b23972484a149a1061afeda6add Mon Sep 17 00:00:00 2001 From: JohnCorby Date: Thu, 20 Apr 2023 18:25:51 -0700 Subject: [PATCH] slightly tweak the module --- NewHorizons/External/Modules/HeightMapModule.cs | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/NewHorizons/External/Modules/HeightMapModule.cs b/NewHorizons/External/Modules/HeightMapModule.cs index b3ecf913..4af422fc 100644 --- a/NewHorizons/External/Modules/HeightMapModule.cs +++ b/NewHorizons/External/Modules/HeightMapModule.cs @@ -53,8 +53,8 @@ namespace NewHorizons.External.Modules /// Multiplies with the alpha of the smoothness map if using one. /// [Range(0f, 1f)] - [DefaultValue(0f)] - public float smoothness; + [DefaultValue(0f)] + public float smoothness = 0f; /// /// How metallic the surface is, from 0 to 1. @@ -62,7 +62,7 @@ namespace NewHorizons.External.Modules /// [Range(0f, 1f)] [DefaultValue(0f)] - public float metallic; + public float metallic = 0f; /// /// Relative filepath to the texture used for the normal (aka bump) map. Optional. @@ -72,8 +72,8 @@ namespace NewHorizons.External.Modules /// /// Strength of the normal map. Usually 0-1, but can go above, or negative to invert the map. /// - [DefaultValue(1f)] - public float normalStrength; + [DefaultValue(1f)] + public float normalStrength = 1f; /// /// Relative filepath to the texture used for emission. Optional. @@ -127,7 +127,9 @@ namespace NewHorizons.External.Modules /// /// How many times this tile will tile across each "side" of the planet, so around the equator, this tile will loop scale * 4 times. /// - [Range(0f, double.MaxValue)] public float scale; + [Range(0f, double.MaxValue)] + [DefaultValue(1f)] + public float scale = 1f; /// /// Relative filepath to a color texture. Optional. @@ -153,7 +155,8 @@ namespace NewHorizons.External.Modules /// /// Strength of the tile normal. Usually 0-1, but can go above, or negative to invert the map. /// - public float normalStrength; + [DefaultValue(1f)] + public float normalStrength = 1f; } } } \ No newline at end of file